-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 1.1 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
version: '3.8'
services:
db:
image: postgres:15
environment:
- POSTGRES_DB=hapi
- POSTGRES_USER=hapi
- POSTGRES_PASSWORD=hapi
volumes:
- db-data:/var/lib/postgresql/data
fhir-server:
image: hapiproject/hapi:v8.2.0-1 # -tomcat
ports:
- "8080:8080"
environment:
- HAPI_FHIR_DATASOURCE_DRIVER=org.postgresql.Driver
- HAPI_FHIR_DATASOURCE_URL=jdbc:postgresql://db:5432/hapi
- HAPI_FHIR_DATASOURCE_USERNAME=hapi
- HAPI_FHIR_DATASOURCE_PASSWORD=hapi
- hapi.fhir.bulk_export_enabled=true
- hapi.fhir.bulk_import_enabled=true
entrypoint: ["java", "-Xms4g", "-Xmx7g", "-jar", "/app/main.war"]
depends_on:
- db
volumes:
- fhir-data:/var/lib/hapi
importer:
build: ./importer
command: python import_fhir_data.py
depends_on:
- fhir-server
environment:
- PYTHONUNBUFFERED=1
post_start:
build: ./importer
command: import --only IG/META
depends_on:
- fhir-server
- db
environment:
- PYTHONUNBUFFERED=1
restart: "no"
volumes:
db-data:
fhir-data: