-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 827 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 827 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
37
38
39
40
version: '3'
services:
db:
image: mysql:8.0
container_name: db
command: --default-authentication-plugin=mysql_native_password
environment:
TZ: "Asia/Shanghai"
MYSQL_ROOT_PASSWORD: 123456
ports:
- "3306:3306"
volumes:
- mysql-data-volume:/var/lib/mysql
redis:
image: redis:4.0
container_name: redis
ports:
- "6379:6379"
volumes:
- redis-data-volume:/data
taskflow:
image: taskflow:latest
container_name: taskflow
ports:
- "8000:8000"
volumes:
- .:/taskflow
- taskflow-log-volume:/var/log/taskflow
command: ["supervisord","-c","/taskflow/supervisord.conf"]
depends_on:
- db
- redis
links:
- db
- redis
volumes:
redis-data-volume:
mysql-data-volume:
taskflow-log-volume: