-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose-infra-lite.yml
114 lines (104 loc) · 3.4 KB
/
docker-compose-infra-lite.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3'
services:
keycloak:
image: "jboss/keycloak:9.0.2"
container_name: keycloak
hostname: keycloak
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: welcome
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
depends_on:
- postgres
ports:
- "9001:8080"
postgres:
image: "postgres:latest"
container_name: postgres
hostname: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- ./db-init.sql:/docker-entrypoint-initdb.d/db-init.sql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
healthcheck:
test: "pg_isready -h localhost -p 5432 -q -U postgres"
interval: 2s
timeout: 5s
retries: 10
ports:
- "5432:5432"
keycloak_setup:
image: "projecteka/keycloak-setup"
container_name: keycloak_setup
environment:
KEYCLOAK_SERVER: http://keycloak:8080/auth
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: welcome
command: "sh -c 'dockerize -wait http://keycloak:8080 -timeout 240s && java -jar /app.jar'"
depends_on:
- keycloak
cm-db-setup:
image: projecteka/cm-db-initializer
container_name: cm-db-setup
environment:
- 'JAVA_TOOL_OPTIONS=-Djdbc.url=jdbc:postgresql://postgres:5432/consent_manager -Djdbc.username=postgres -Djdbc.password=password'
depends_on:
- keycloak_setup
hiu-db-setup:
image: projecteka/hiu-db-initializer
container_name: hiu-db-setup
environment:
- 'JAVA_TOOL_OPTIONS=-Djdbc.url=jdbc:postgresql://postgres:5432/health_information_user -Djdbc.username=postgres -Djdbc.password=password'
depends_on:
- cm-db-setup
gateway-db-setup:
image: projecteka/gateway-db-initializer
container_name: gateway-db-setup
environment:
- 'JAVA_TOOL_OPTIONS=-Djdbc.url=jdbc:postgresql://postgres:5432/gateway -Djdbc.username=postgres -Djdbc.password=password'
depends_on:
- hiu-db-setup
monitor-db-setup:
image: projecteka/monitor-db-initializer
container_name: monitor-db-setup
environment:
- 'JAVA_TOOL_OPTIONS=-Djdbc.url=jdbc:postgresql://postgres:5432/gateway -Djdbc.username=postgres -Djdbc.password=password'
depends_on:
- gateway-db-setup
user-db-setup:
image: projecteka/user-db-initializer
container_name: user-db-setup
environment:
- 'JAVA_TOOL_OPTIONS=-Djdbc.url=jdbc:postgresql://postgres:5432/user_service -Djdbc.username=postgres -Djdbc.password=password'
depends_on:
- monitor-db-setup
dataflow-db-setup:
image: projecteka/dataflow-db-initializer
container_name: dataflow-db-setup
environment:
- 'JAVA_TOOL_OPTIONS=-Djdbc.url=jdbc:postgresql://postgres:5432/dataflow_service -Djdbc.username=postgres -Djdbc.password=password'
depends_on:
- user-db-setup
data-notification-db-setup:
image: projecteka/data-notification-db-initializer
container_name: data-notification-db-setup
environment:
- 'JAVA_TOOL_OPTIONS=-Djdbc.url=jdbc:postgresql://postgres:5432/data_notification_subscription; -Djdbc.username=postgres -Djdbc.password=password'
depends_on:
- user-db-setup
orthanc:
image: jodogne/orthanc-plugins
container_name: orthanc-plugins
ports:
- "4242:4242"
- "8042:8042"
volumes:
postgres_data:
driver: local