-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
70 lines (62 loc) · 1.14 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3'
services:
db:
image: postgres
networks:
- nginx_network
redis:
image: "redis:alpine"
networks:
- nginx_network
mongo:
image: mongo:3
container_name: mongo
# volumes:
# - .././data/mongo:/data/db
ports:
- '27017:27017'
networks:
- nginx_network
web:
build: .
command: bash -c "python3 /code/manage.py migrate --noinput && gunicorn saturday.wsgi -b 0.0.0.0:8000"
volumes:
- .:/code
# ports:
# - "8000:8000"
depends_on:
- db
- redis
- mongo
networks:
- nginx_network
nginx:
image: nginx:1.13
build:
context: .
dockerfile: ./config/nginx/Dockerfile
ports:
- 8000:80
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
depends_on:
- web
- db
- redis
- mongo
networks:
- nginx_network
celery:
build: .
command: celery -A saturday worker -l info
volumes:
- .:/code
depends_on:
- db
- redis
- mongo
networks:
- nginx_network
networks: # <-- and here
nginx_network:
driver: bridge