-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
88 lines (83 loc) · 2.1 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: koppeltaal_2_docker_compose
services:
keygen:
image: jorisheadease/kt2-keygen
container_name: kt2_keygen
volumes:
- ./secrets:/secrets
postgres:
image: postgres:14.7-alpine
container_name: kt2_postgres
restart: always
env_file:
- ./config/.db-env
ports:
- '5433:5432'
volumes:
- ./postgres-data:/data/postgres
- ./secrets:/secrets
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
storage_opt:
size: '512M'
healthcheck:
test: pg_isready && test -f /data/postgres/fixtures-loaded && test -f /secrets/public.pem
interval: 2s
retries: 20
start_period: 5s
timeout: 1s
depends_on:
keygen:
condition: service_completed_successfully
keycloak:
image: quay.io/keycloak/keycloak:21.1.1
container_name: kt2_keycloak
volumes:
- ./config/keycloak-kt2-realm.json:/opt/keycloak/data/import/keycloak-kt2-realm.json
command:
- start-dev --import-realm
env_file:
- config/.keycloak-env
ports:
- '9990:9990'
- '8083:8080'
restart: on-failure:10
depends_on:
postgres:
condition: service_healthy
fhir-service:
image: jorisheadease/hapi:v6.6.0-RELEASE
container_name: kt2_fhir_service
env_file:
- ./config/.fhir-service-env
ports:
- '8080:8080'
depends_on:
postgres:
condition: service_healthy
domain-admin:
image: jorisheadease/kt2-domain-admin:latest
container_name: kt2_domain_admin
ports:
- '8081:8080'
env_file:
- ./config/.domain-admin-env
restart: on-failure:10
healthcheck:
test: curl --fail http://127.0.0.1:8080/.well-known/jwks.json || exit 1
interval: 2s
retries: 20
start_period: 60s
timeout: 1s
depends_on:
postgres:
condition: service_healthy
auth-service:
image: jorisheadease/kt2-auth-service
container_name: kt2_auth_service
env_file:
- ./config/.auth-service-env
ports:
- '8082:5000'
depends_on:
postgres:
condition: service_healthy