forked from Cl0udG0d/SZhe_Scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 859 Bytes
/
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
version: '3'
services:
redis:
image: "redis"
restart: always
environment:
- TZ=Asia/Shanghai
mysql:
build: ./mysql
environment:
- TZ=Asia/Shanghai
- MYSQL_DATABASE=SZheScan
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
restart: always
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--sql-mode=""
web:
build: .
ports:
- "8000:8000"
links:
- mysql:mysql
- redis:redis
depends_on:
- mysql
restart: always
environment:
- TZ=Asia/Shanghai
celery:
build: .
depends_on:
- redis
- web
command: "celery -A app.celery.celerytask:scantask worker -c 10 --loglevel=info -P eventlet"
links:
- redis:redis
restart: always
environment:
- TZ=Asia/Shanghai