-
Notifications
You must be signed in to change notification settings - Fork 420
/
docker-compose.yaml
67 lines (67 loc) · 1.08 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
version: '2'
networks:
bridge:
driver: bridge
services:
redis:
image: redis
ports:
- 6379:6379
networks:
- bridge
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: test123
MYSQL_DATABASE: test
MYSQL_USER: dev
MYSQL_PASSWORD: test123
ports:
- 3306:3306
restart: always
networks:
- bridge
volumes:
- ./mysql_data:/var/lib/mysql
web:
build: .
ports:
- 8100:8100
volumes:
- .:/web
depends_on:
- redis
- mysql
command: python app.py
networks:
- bridge
init:
build: .
volumes:
- .:/web
depends_on:
- redis
- mysql
environment:
- FLASK_APP=manager.py
command:
- /bin/sh
- -c
- |
cp local_settings.py.tmpl local_settings.py
flask initdb
networks:
- bridge
celery:
build: .
volumes:
- .:/web
depends_on:
- redis
- mysql
command: celery -A wechat worker -l info -B
networks:
- bridge
volumes:
mysql-data:
driver: local