forked from danuk/shm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (86 loc) · 1.86 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
api:
image: "danuk/shm-api:latest"
restart: always
links:
- core
core:
image: "danuk/shm-core:latest"
restart: always
environment:
#DEBUG: DEBUG
TZ: ${TZ}
LANG: C.UTF-8
DB_NAME: ${MYSQL_DATABASE}
DB_USER: ${MYSQL_USER}
DB_PASS: ${MYSQL_PASS}
DB_HOST: mysql
DB_PORT: 3306
links:
- mysql
depends_on:
mysql:
condition: service_healthy
spool:
image: "danuk/shm-core:latest"
deploy:
mode: replicated
replicas: 1
restart: always
environment:
#DEBUG: ERROR
TZ: ${TZ}
LANG: C.UTF-8
SHM_ROLE: "spool"
DB_NAME: ${MYSQL_DATABASE}
DB_USER: ${MYSQL_USER}
DB_PASS: ${MYSQL_PASS}
DB_HOST: mysql
DB_PORT: 3306
links:
- mysql
depends_on:
mysql:
condition: service_healthy
admin:
image: "danuk/shm-admin:latest"
restart: always
environment:
SHM_HOST: http://api
ports:
- "0.0.0.0:8081:80"
links:
- api
client:
image: "danuk/shm-client:latest"
restart: always
environment:
SHM_HOST: http://api
# volumes:
# - ./styles-alternative.css:/app/assets/css/styles-alternative.css
# - ./head.html:/app/ssi/head.html
# - ./body.html:/app/ssi/body.html
ports:
- "0.0.0.0:8082:80"
links:
- api
mysql:
image: "mysql:lts"
restart: always
environment:
TZ: ${TZ}
LANG: C.UTF-8
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASS}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASS}
volumes:
- "mysql-data:/var/lib/mysql"
healthcheck:
test: "mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"
interval: 5s
timeout: 3s
retries: 10
volumes:
mysql-data:
driver: local