-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
122 lines (114 loc) · 2.25 KB
/
docker-compose.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: '3'
networks:
nginx_network:
driver: bridge
db_network:
driver: bridge
notification_network:
driver: bridge
redis_network:
driver: bridge
# frontend_network:
# driver: bridge
services:
db:
image: postgres
ports:
- "5432:5432"
env_file:
- default.env
networks:
- db_network
redis:
image: redis:2.8
command: redis-server
ports:
- "6379:6379"
networks:
- redis_network
web:
build:
context: ./deans-api
image: django_image
entrypoint: "start_django.sh"
env_file:
- default.env
volumes:
- ./deans-api/data:/data
- ./deans-api/deans_api:/work/deans-api/deans_api
- static_volume:/static-django
depends_on:
- db
- redis
networks:
- db_network
- nginx_network
- notification_network
- redis_network
notification:
build:
context: ./deans-notification
image: notification_image
entrypoint: "start_server.sh"
# command: "python -c \"while True: pass\""
# ports:
# - "8000:3000"
env_file:
- default.env
volumes:
- ./deans-notification:/work
networks:
- notification_network
# frontend:
# build:
# context: ./deans-frontend
# image: frontend_image
# networks:
# - frontend_network
# ports:
# - 3000:3000
nginx:
build:
context: ./nginx
image: nginx:1.13
ports:
- 8000:80
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- static_volume:/static-django
env_file:
- default.env
depends_on:
- web
# - frontend
# - node
networks:
- nginx_network
cron:
image: django_image
command: bash -c "python3 /cron/cron.py"
env_file:
- default.env
volumes:
- ./cron:/cron
- ./deans-api/deans_api:/work/deans-api/deans_api
depends_on:
- web
networks:
- notification_network
- db_network
volumes:
static_volume:
# node:
# build: ./deans-frontend
# ports:
# - "3000:3000"
# expose:
# - 3000
# volumes:
# - ./deans-frontend:/work/
# ports:
# - "3000"
# command: bash -c "yarn install; yarn start"
# networks:
# - nginx_network