-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·50 lines (50 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
executable file
·50 lines (50 loc) · 1.33 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
version: '2.1'
services:
resource-server:
container_name: resource-server
build:
context: './BM-Resource'
dockerfile: Dockerfile
volumes:
- ./BM-Resource/shared:/hostStorage
ports:
- "8081:8081"
depends_on:
keycloak:
condition: service_healthy
mysql:
condition: service_healthy
restart: unless-stopped
keycloak:
container_name: keycloak
build:
context: './BM-Authorization'
dockerfile: Dockerfile
ports:
- "8080:8080"
- "8443:8443"
volumes:
- ./BM-Authorization/shared:/hostStorage
healthcheck:
test: ["CMD","curl","-f","http://keycloak:8080/auth/realms/master"]
interval: 10s
timeout: 5s
retries: 20
depends_on:
mysql:
condition: service_healthy
restart: unless-stopped
mysql:
container_name: mysql
build:
context: ./MySQL
dockerfile: Dockerfile
volumes:
- ./MySQL/shared:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 10s
retries: 20
restart: unless-stopped