forked from victorsndvg/sregistry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 929 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
db:
image: postgres
volumes:
- ./data/postgresql:/var/lib/postgresql/data
uwsgi:
restart: always
image: mso4sc/sregistry
volumes:
- ./app:/code
- ./data/static:/var/www/static
- ./data/images:/var/www/images
links:
- redis
- db
nginx:
restart: always
image: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./data/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./data/nginx/uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
- ./data/ssl/certs:/etc/ssl/certs:ro
- ./data/ssl/private:/etc/ssl/private:ro
volumes_from:
- uwsgi
links:
- uwsgi
- db
redis:
restart: always
image: redis:latest
volumes:
- ./data/redis:/data
expose:
- "6379"
worker:
image: mso4sc/sregistry
command: celery worker -A shub.celery -Q default -n default@%h -B
volumes:
- ./app:/code
volumes_from:
- uwsgi
links:
- redis
- db