-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (66 loc) · 1.51 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
version: "3"
services:
database:
container_name: camunda-database
build: database/build/.
ports:
- "9102:5432"
networks:
- camundaapp-network
- default
environment:
POSTGRES_USER: ${CAMUNDA_POSTGRES_USER}
POSTGRES_DB: ${CAMUNDA_POSTGRES_DB}
POSTGRES_PASSWORD: ${CAMUNDA_POSTGRES_PASSWORD}
volumes:
- database:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: pg_isready -U ${CAMUNDA_POSTGRES_USER}
camunda:
build: camunda/.
ports:
- "9101:8091"
depends_on:
database:
condition: service_started
keycloak:
condition: service_healthy
networks:
- camundaapp-network
- default
env_file:
- .env
keycloak-db:
image: postgres:15.3
container_name: keycloak-db
env_file:
- .env
healthcheck:
test: pg_isready -U ${KC_DB_USERNAME}
volumes:
- keycloak-db:/var/lib/postgresql/data
keycloak:
build: keycloak/.
container_name: keycloak
env_file:
- .env
ports:
- "8080:8080"
networks:
- camundaapp-network
- default
command: start-dev --import-realm --metrics-enabled=true
depends_on:
- keycloak-db
healthcheck:
test: ["CMD", "bash", "/opt/keycloak/custom-health-check.sh"]
interval: 5s
timeout: 5s
retries: 8
volumes:
database:
keycloak-db:
networks:
camundaapp-network:
name: camundaapp-network