-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (82 loc) · 2.5 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
version: "3"
services:
migration-tool:
image: 'ehrbase/migration-tool:1.2.0-SNAPSHOT'
environment:
mode: DB2DB
spring.datasource.export.url: jdbc:postgresql://postgres-export:5432/ehrbase
spring.datasource.export.username: ehrbase
spring.datasource.export.password: ehrbase
spring.datasource.import.url: jdbc:postgresql://postgres-import:5432/ehrbase
spring.datasource.import.username: ehrbase
spring.datasource.import.password: ehrbase
import.ehrbase-db-user: ehrbase_restricted
links:
- ehrbase-export
- postgres-export
- postgres-import
depends_on:
ehrbase-export:
condition: service_healthy
postgres-export:
condition: service_healthy
postgres-import:
condition: service_healthy
networks:
- ehrbase-net
ehrbase-export:
image: ehrbase/ehrbase:0.32.0
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-export:5432/ehrbase
DB_USER_ADMIN: ehrbase
DB_PASS_ADMIN: ehrbase
DB_USER: ehrbase_restricted
DB_PASS: ehrbase_restricted
MANAGEMENT_ENDPOINT_HEALTH_ENABLED: true # needed for docker healthcheck
MANAGEMENT_HEALTH_REDIS_ENABLED: false # exclude redis from healthcheck
healthcheck:
test: [ "CMD-SHELL", "curl --fail --silent http://localhost:8080/ehrbase/management/health | grep UP || exit 1" ]
interval: 5s
timeout: 5s
retries: 20
links:
- postgres-export
depends_on:
postgres-export:
condition: service_healthy
networks:
- ehrbase-net
postgres-export:
image: ehrbase/ehrbase-postgres:13.4.v2
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
EHRBASE_USER_ADMIN: ehrbase
EHRBASE_PASSWORD_ADMIN: ehrbase
EHRBASE_USER: ehrbase_restricted
EHRBASE_PASSWORD: ehrbase_restricted
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 12
networks:
- ehrbase-net
postgres-import:
image: ehrbase/ehrbase-v2-postgres:16.2
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
EHRBASE_USER_ADMIN: ehrbase
EHRBASE_PASSWORD_ADMIN: ehrbase
EHRBASE_USER: ehrbase_restricted
EHRBASE_PASSWORD: ehrbase_restricted
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 12
networks:
- ehrbase-net
networks:
ehrbase-net: { }