-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.example
82 lines (82 loc) · 1.89 KB
/
docker-compose.example
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
name: ccm-mgmt
version: "2"
services:
backend:
depends_on:
mariadb:
condition: service_started
required: true
environment:
MARIADB_DATABASE_NAME: ccm_mgmt
MARIADB_HOST: mariadb
MARIADB_PASSWORD: example
MARIADB_PORT: "3306"
MARIADB_USERNAME: ccm_mgmt
SERVER_PORT: "8080"
healthcheck:
test:
- CMD-SHELL
- curl --fail http://127.0.0.1:8080/health || exit 1
timeout: 10s
interval: 10s
retries: 5
image: ghcr.io/zusel/ccm-mgmt-backend:master
networks:
default: null
ports:
- mode: ingress
target: 8080
published: "8080"
protocol: tcp
frontend:
depends_on:
backend:
condition: service_started
required: true
environment:
VITE_BACKEND_PORT: "8080"
VITE_BACKEND_URL: http://127.0.0.1
VITE_SERVER_PORT: "3000"
healthcheck:
test:
- CMD-SHELL
- wget --no-verbose --tries=1 --spider http://localhost:3000 || exit 1
timeout: 10s
interval: 10s
retries: 5
image: ghcr.io/zusel/ccm-mgmt-frontend:master
networks:
default: null
ports:
- mode: ingress
target: 3000
published: "3000"
protocol: tcp
mariadb:
environment:
MYSQL_DATABASE: ccm_mgmt
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_USER: ccm_mgmt
healthcheck:
test:
- CMD
- healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
timeout: 30s
interval: 30s
retries: 3
image: mariadb:10.6.17
networks:
default: null
volumes:
- type: bind
source: /home/itstimetoforget/IdeaProjects/CCM-MGMT/mount_point/mariadb
target: /var/lib/mysql
bind:
create_host_path: true
networks:
default:
name: ccm-mgmt_default