-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
143 lines (130 loc) · 2.89 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3'
services:
django:
image: django:latest
container_name: django_app
build:
context: ./rtbolidozor_backend
dockerfile: Dockerfile_guicorn
volumes:
- /data/bolidozor/django:/data
- ./rtbolidozor_backend/:/app
- ./rtbolidozor_tools/:/tools
- /storage/bolidozor:/storage
#ports:
# - 8011:8001
depends_on:
- redis
- db
env_file:
- /data/bolidozor/.env
networks:
- internal_net
websocket:
image: django:latest
container_name: websocket_app
build:
context: ./rtbolidozor_backend
dockerfile: Dockerfile_daphne
volumes:
- /data/bolidozor/websocket:/data
- ./rtbolidozor_backend/:/app
#ports:
# - 8012:8001
depends_on:
- redis
- db
env_file:
- /data/bolidozor/.env
networks:
- internal_net
command: daphne -b 0.0.0.0 -p 8001 rtbolidozor_backend.asgi:application
worker:
image: django:latest
container_name: django_q
build:
context: ./rtbolidozor_backend
dockerfile: Dockerfile_guicorn
volumes:
- /data/bolidozor/django:/data
- ./rtbolidozor_backend/:/app
- ./rtbolidozor_tools/:/tools
- /storage/bolidozor:/storage
#ports:
# - 8011:8001
depends_on:
- redis
- db
env_file:
- /data/bolidozor/.env
networks:
- internal_net
command: python3 manage.py qcluster
vue:
image: node:latest
container_name: vue_app
build:
context: ./rtbolidozor_frontend
dockerfile: Dockerfile_vue
#command: npm run build
volumes:
# #- /data/bolidozor/vue:/app
- ./rtbolidozor_frontend/src:/usr/src/app/src
#ports:
# - 8010:8080
env_file:
- /data/bolidozor/.env
networks:
- internal_net
redis:
image: redis:latest
container_name: redis
restart: always
volumes:
- /data/bolidozor/redis:/root/redis
- /data/bolidozor/redis.conf:/usr/local/etc/redis/redis.conf
#ports:
# - "6333:6379"
networks:
- internal_net
db:
image: postgres:13
container_name: postgres
volumes:
- /data/bolidozor/postgres:/var/lib/postgresql/data
env_file:
- /data/bolidozor/.env
# ports:
# - "5432:5432"
networks:
- internal_net
nginx:
image: nginx:latest
container_name: nginx
build:
context: ./rtbolidozor_nginx
dockerfile: Dockerfile_nginx
ports:
- 8888:8888
depends_on:
- django
- vue
- websocket
networks:
- internal_net
# For internal network debuging purposes
#network_tools:
# image: busybox
# container_name: network_tools
# command: ["sh", "-c", "while true; do sleep 3600; done"]
# networks:
# - internal_net
networks:
internal_net:
driver: bridge
volumes:
django_data:
websocket_data:
vue_data:
redis_data:
postgres_data: