forked from vanderbilt/omop-on-fhir-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
91 lines (85 loc) · 3.02 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
89
90
91
version: "3"
volumes:
omop-on-fhir-pg-data:
networks:
backend:
services:
omop-on-fhir-pg:
container_name: omop-on-fhir-pg
image: omop-on-fhir-pg
build:
context: docker/omop-on-fhir-pg
dockerfile: Dockerfile
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: omop_db
PGDATA: /var/lib/postgresql/data/pgdata
networks:
- backend
volumes:
- "omop-on-fhir-pg-data:/var/lib/postgresql/data/pgdata"
- "${PWD}/docker/omop-on-fhir-pg/my.conf:/etc/postgresql/postgresql.conf"
- "${PWD}/files-athena:/opt/sql/vocabulary_download"
omop-on-fhir-adminer:
container_name: omop-on-fhir-adminer
image: adminer
depends_on:
- omop-on-fhir-pg
environment:
ADMINER_DEFAULT_DB_DRIVER: pgsql
ADMINER_DEFAULT_DB_HOST: "omop-on-fhir-pg"
ADMINER_DEFAULT_DB_NAME: "omop_db"
networks:
- backend
ports:
- "8088:8080"
omop-on-fhir:
build:
context: docker/omop-on-fhir
dockerfile: Dockerfile
args:
FHIR_VERSION: "${FHIR_VERSION:-dstu2}" # this determines the repository we check out
OOF_GH_BRANCH: "${OOF_GH_BRANCH:-master}" # this determines which branch from the above repository we use
MAVEN_VERSION: "${MAVEN_VERSION:-3.6.1}" # this determines the version of the build container
OOF_WAR_NAME: "${OOF_WAR_NAME:-omoponfhir2}"
DB_TYPE: "${DB_TYPE:--sql}"
container_name: omop-on-fhir
depends_on:
- omop-on-fhir-pg
environment:
JDBC_USERNAME: postgres
JDBC_PASSWORD: example
PG_HOST: "omop-on-fhir-pg"
PG_PORT: "5432"
PG_DATABASE: "omop_db"
PG_CURRENTSCHEMA: "public"
JDBC_URL: jdbc:postgresql://omop-on-fhir-pg:5432/omop_db
SERVERBASE_URL: http://localhost:8080/omoponfhir2/fhir
AUTH_BASIC: fhirguy:fhirpass
FHIR_READONLY: "false"
networks:
- backend
ports:
- "8080:8080"
omop-on-fhir-import-fhir-json:
container_name: omop-on-fhir-import-fhir-json
build:
context: docker/import-fhir-json
dockerfile: Dockerfile
depends_on:
- omop-on-fhir
environment:
FHIR_SERVER: "http://omop-on-fhir:8080/omoponfhir2/fhir/"
FHIR_FOLDER: "./test"
FHIR_AUTH_TYPE: "basic"
FHIR_VERSION: "DSTU2"
FHIR_DB_NAME: "db/db.sqlite"
OMOPONFHIR_USER: "fhirguy"
OMOPONFHIR_PASSWORD: "fhirpass"
SLEEP_FOR: "30"
networks:
- backend
volumes:
- "${PWD}/files-fhir:/app/import-fhir-json/test"
- "${PWD}/docker/import-fhir-json/runtime:/app/import-fhir-json/db"