forked from gb-it/fhir-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 1.22 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
version: "3.8"
services:
fhir-server:
image: "ghcr.io/dot-base/fhir-server:latest"
environment:
HAPI_DATASOURCE_URL: "jdbc:postgresql://fhir-postgres:5432/hapi_r4"
HAPI_DATASOURCE_USERNAME: "${FHIR_DB_USER:-admin}"
HAPI_DATASOURCE_PASSWORD: "${FHIR_DB_PASSWORD:-admin}"
HAPI_ERROR_MONITORING_ENABLED: "true"
SENTRY_ENVIRONMENT: "${SENTRY_ENVIRONMENT}"
SENTRY_DSN : "${SENTRY_DSN}"
PROXY_ADDRESS: "${PROXY_ADDRESS}"
PROXY_PORT : "${PROXY_PORT}"
HAPI_AUTHENTICATION_INTERCEPTOR_ENABLED: "true"
HAPI_SSO_REALM_ADDRESS: "${SSO_REALM_ADRESS}"
ports:
- "8080:8080"
networks:
- backend
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
fhir-postgres:
image: postgres:alpine
environment:
POSTGRES_USER: "${FHIR_DB_USER:-admin}"
POSTGRES_PASSWORD: "${FHIR_DB_PASSWORD:-admin}"
POSTGRES_DB: "hapi_r4"
ports:
- "5432:5432"
networks:
- backend
volumes:
- fhir-postgres-data:/var/lib/postgresql/data
deploy:
placement:
max_replicas_per_node: 1
networks:
backend:
volumes:
fhir-postgres-data: