-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (33 loc) · 999 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (33 loc) · 999 Bytes
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
version: '3'
services:
tf_mysql_server:
image: mysql:8.0
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=task_flow
- MYSQL_USER=hui
- MYSQL_PASSWORD=123456
volumes:
- /opt/hui/projects/TaskFlow/data/mysql/data:/var/lib/mysql
- /opt/hui/projects/TaskFlow/data/mysql/conf:/etc/mysql/conf.d
- /opt/hui/projects/TaskFlow/data/mysql/log:/var/log/mysql
tf_web:
image: nginx:stable-alpine
ports:
- "6969:6969"
volumes:
- /opt/hui/projects/TaskFlow/data/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- /opt/hui/projects/TaskFlow/data/nginx/data:/data
- /opt/hui/projects/TaskFlow/data/nginx/log:/var/log/nginx
tf_api:
image: taskflow_image
ports:
- "8099:8099"
volumes:
- /opt/hui/projects/TaskFlow/logs:/app/logs
- /opt/hui/projects/TaskFlow/settings:/app/src/settings
command: python main.py
depends_on:
- tf_mysql_server