-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (56 loc) · 1.52 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
version: "3"
services:
backend:
image: ghcr.io/zusel/ccm-mgmt-backend:master
ports:
- ${SERVER_PORT}:${SERVER_PORT}
environment:
SERVER_PORT: ${SERVER_PORT}
MARIADB_DATABASE_NAME: ${MARIADB_DATABASE_NAME}
MARIADB_HOST: ${MARIADB_HOST}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_PORT: ${MARIADB_PORT}
MARIADB_USERNAME: ${MARIADB_USERNAME}
depends_on:
- mariadb
healthcheck:
test: curl --fail http://127.0.0.1:${SERVER_PORT}/health || exit 1
interval: 10s
retries: 5
timeout: 10s
frontend:
image: ghcr.io/zusel/ccm-mgmt-frontend:master
ports:
- ${VITE_SERVER_PORT}:${VITE_SERVER_PORT}
depends_on:
- backend
environment:
VITE_BACKEND_URL: ${VITE_BACKEND_URL}
VITE_BACKEND_PORT: ${VITE_BACKEND_PORT}
VITE_SERVER_PORT: ${VITE_SERVER_PORT}
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:${VITE_SERVER_PORT} || exit 1
interval: 10s
retries: 5
timeout: 10s
mariadb:
image: mariadb:10.6.17
environment:
MYSQL_DATABASE: ${MARIADB_DATABASE}
MYSQL_USER: ${MARIADB_USERNAME}
MYSQL_PASSWORD: ${MARIADB_PASSWORD}
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
healthcheck:
interval: 30s
retries: 3
test:
[
"CMD",
"healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized"
]
timeout: 30s
volumes:
- ./mount_point/mariadb:/var/lib/mysql