-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (106 loc) · 2.41 KB
/
docker-compose.yml
File metadata and controls
108 lines (106 loc) · 2.41 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
services:
api:
image: "${SHM_REPO}/shm-api:${CORE_VERSION}"
pull_policy: always
restart: always
environment:
TRUSTED_IPS: ""
ENABLE_RATE_LIMIT: "${ENABLE_RATE_LIMIT:-false}"
depends_on:
- core
core:
image: "${SHM_REPO}/shm-core:${CORE_VERSION}"
pull_policy: always
restart: always
environment:
#DEBUG: DEBUG
TZ: ${TZ}
LANG: C.UTF-8
WORKERS_COUNT: ${WORKERS_COUNT:-4}
DB_NAME: ${MYSQL_DATABASE}
DB_USER: ${MYSQL_USER}
DB_PASS: ${MYSQL_PASS}
DB_HOST: ${MYSQL_HOST}
DB_PORT: ${MYSQL_PORT}
volumes:
- "shm-data:/app/data"
depends_on:
mysql:
condition: service_healthy
spool:
image: "${SHM_REPO}/shm-core:${CORE_VERSION}"
pull_policy: always
deploy:
mode: replicated
replicas: 2
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_HOST}
DB_PORT: ${MYSQL_PORT}
volumes:
- "shm-data:/app/data"
depends_on:
mysql:
condition: service_healthy
admin:
image: "danuk/shm-admin:${ADMIN_VERSION}"
pull_policy: always
restart: always
environment:
SHM_HOST: http://api
SHM_BASE_PATH: /
VITE_SHOW_SWAGGER: false
ports:
- "${ADMIN_PORT}:80"
depends_on:
- api
client:
image: "danuk/shm-client-2:${CLIENT_VERSION}"
pull_policy: always
restart: always
environment:
SHM_HOST: http://api
SHM_BASE_PATH: /
ports:
- "${CLIENT_PORT}:80"
depends_on:
- 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
# webdav:
# image: "${SHM_REPO}/shm-webdav:latest"
# restart: always
# ports:
# - "${WEBDAV_PORT}:80"
# volumes:
# - "shm-data:/app/data"
redis:
image: redis:latest
restart: always
volumes:
mysql-data:
driver: local
shm-data:
driver: local