forked from jmv74211/clockzy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (58 loc) · 1.78 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
version: '3'
services:
mysql-service:
image: mysql:8.0.27
volumes:
- ./deploy/db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
ports:
- 3306:3306
clockzy-api:
build:
context: .
dockerfile: ./deploy/Dockerfile
ports:
- 10030:10030
volumes:
- ./:/app
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
working_dir: /app
environment:
- PYTHONUNBUFFERED=1
- GUNICORN=1
command: >
bash -c "python3 setup.py install && cd /app/src/clockzy/services &&
python3 -m gunicorn --bind 0.0.0.0:10030 -w 2 --access-logfile /app/logs/clockzy_service.log \
--timeout 300 clockzy_service:clockzy_service"
depends_on:
- mysql-service
links:
- mysql-service
clockzy-web:
build:
context: .
dockerfile: ./deploy/Dockerfile
ports:
- 10025:10025
volumes:
- ./:/app
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
working_dir: /app
environment:
- PYTHONUNBUFFERED=1
- GUNICORN=1
command: >
bash -c "python3 setup.py install && cd /app/src/web_app &&
python3 -m gunicorn --bind 0.0.0.0:10025 -w 2 \
--access-logfile /app/logs/clockzy_web_service.log --timeout 300 clockzy_web:web_app"
depends_on:
- mysql-service
- clockzy-api
adminer:
image: adminer
restart: always
ports:
- 8080:8080