forked from isichos/epa
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-mysql.yml
70 lines (67 loc) · 1.35 KB
/
docker-compose-mysql.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.7"
services:
db:
image: mysql:5.7
container_name: open_planDB
expose:
- 3306
restart: always
env_file:
- .envs/db.mysql
volumes:
- db_data_mysql:/var/lib/mysql/
networks:
- open_plan_network
app:
build:
context: ./app
dockerfile: ./compose/production/app_mysql/Dockerfile
container_name: django-open_plan_mysql
restart: always
env_file:
- .envs/epa.mysql
expose:
- 8000
volumes:
- static_volume:/src/cdn_static_root
command: "gunicorn --workers=2 --bind=0.0.0.0:8000 epa.wsgi:application"
depends_on:
- db
networks:
- open_plan_network
djangoq:
build:
context: ./app
dockerfile: ./compose/production/app_mysql/Dockerfile
container_name: django-q-open_plan
restart: always
env_file:
- .envs/epa.mysql
command: python manage.py qcluster
volumes:
- .:/code
expose:
- 8000
depends_on:
- db
- app
networks:
- open_plan_network
nginx:
image: nginx:1.17
container_name: ngx
restart: always
ports:
- "8090:80"
volumes:
- ./nginx/mysql:/etc/nginx/conf.d
- static_volume:/static
depends_on:
- app
networks:
- open_plan_network
volumes:
db_data_mysql:
static_volume:
networks:
open_plan_network: