-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (118 loc) · 3.26 KB
/
docker-compose.yml
File metadata and controls
121 lines (118 loc) · 3.26 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
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
115
116
117
118
119
120
121
version: '3.9'
services:
db:
image: postgres:14
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 2s
retries: 5
environment:
TZ: Europe/Berlin
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
# - ./db/data:/var/lib/postgresql/data
- ./db/init:/docker-entrypoint-initdb.d:ro
ports:
- "5432:5432"
deploy:
resources:
limits:
cpus: '0.40'
memory: 256M
reservations:
cpus: '0.15'
memory: 128M
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 2s
timeout: 3s
retries: 5
ports:
- "6379:6379"
deploy:
resources:
limits:
cpus: '0.20'
memory: 96M
reservations:
cpus: '0.05'
memory: 64M
ehrbase:
image: numresearchdataplatform/num-ehrbase:latest
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:7979/management/health || exit 1"]
interval: 10s
timeout: 2s
retries: 20
start_period: 50s
environment:
JDK_JAVA_OPTIONS: "-XX:MaxRAMPercentage=70.0 -XX:MinRAMPercentage=70.0 -XX:InitialRAMPercentage=70.0 --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED"
SPRING_PROFILES_ACTIVE: docker
DB_URL: jdbc:postgresql://db:5432/ehrbase
DB_USER: ehrbase
DB_PASS: ehrbase
SPRING_REDIS_HOST: redis
SECURITY_AUTHTYPE: NONE
MANAGEMENT_SERVER_PORT: 7979
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE: env,health,info,metrics,prometheus
MANAGEMENT_ENDPOINTS_WEB_BASEPATH: /management
MANAGEMENT_ENDPOINT_ENV_ENABLED: false
MANAGEMENT_ENDPOINT_HEALTH_ENABLED: true
MANAGEMENT_ENDPOINT_HEALTH_DATASOURCE_ENABLED: false
MANAGEMENT_ENDPOINT_INFO_ENABLED: false
MANAGEMENT_ENDPOINT_METRICS_ENABLED: false
MANAGEMENT_ENDPOINT_PROMETHEUS_ENABLED: false
MANAGEMENT_ENDPOINT_HEALTH_PROBES_ENABLED: true
CACHE_ENABLED: true
ports:
- "8080:8080"
- "7979:7979"
depends_on:
redis:
condition: service_healthy
db:
condition: service_healthy
links:
- db
- redis
deploy:
resources:
limits:
cpus: '0.50'
memory: 4096M
reservations:
cpus: '0.25'
memory: 2048M
fhir-bridge:
image: numresearchdataplatform/num-fhir-bridge:latest
volumes:
- ./fhir-bridge/conf:/fhir-bridge/conf:ro
environment:
JDK_JAVA_OPTIONS: "-XX:MaxRAMPercentage=70.0 -XX:MinRAMPercentage=70.0 -XX:InitialRAMPercentage=70.0"
FHIR_BRIDGE_OPENEHR_URL: http://ehrbase:8080/ehrbase/
FHIR_BRIDGE_OPENEHR_SECURITY_TYPE: NONE
SPRING_CONFIG_LOCATION: /fhir-bridge/conf/
SPRING_PROFILES_ACTIVE: pg-db
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/fbridge
ports:
- "8888:8888"
- "7878:7979"
depends_on:
ehrbase:
condition: service_healthy
links:
- db
- ehrbase
deploy:
resources:
limits:
cpus: '0.50'
memory: 4096M
reservations:
cpus: '0.25'
memory: 2048M