-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.56 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '2'
services:
worker:
image: connectai/gitmaya
volumes:
- .env:/server/.env
command: celery -A tasks.celery worker -l INFO -c 2
beat:
extends: worker
command: celery -A tasks.celery beat -l DEBUG
flower:
extends: worker
command: bash -c 'pip install flower && celery -A tasks.celery flower --basic-auth="gitmaya:gitmaya2023" --persistent=True --db="/data/flower_db"'
ports:
- "5555"
environment:
- VIRTUAL_HOST=flower.gitmaya.com
volumes:
- ./data/flower:/data
gitmaya:
extends: worker
ports:
- "8888"
environment:
- VIRTUAL_HOST=gitmaya.com
command: gunicorn --worker-class=gevent --workers 1 --bind 0.0.0.0:8888 -t 600 --keep-alive 60 --log-level=info server:app
redis:
restart: always
image: redis:alpine
ports:
- "6379"
volumes:
- ./data/redis:/data
command: redis-server --save 20 1 --loglevel warning
mysql:
restart: always
image: mysql:5.7
volumes:
- ./data/mysql/data:/var/lib/mysql
- ./data/mysql/conf.d:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: 'gitmaya2023'
MYSQL_DATABASE: 'gitmaya'
TZ: 'Asia/Shanghai'
ports:
- "3306"
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
proxy:
image: connectai/gitmaya-proxy
ports:
- "8000:80"
- "8001:81"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro