-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-dev.yaml
111 lines (106 loc) · 3.28 KB
/
docker-compose-dev.yaml
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
services:
# Postgresql DB
db:
image: "postgres:alpine"
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=pw
- POSTGRES_DB=tefca_db
# Note: you must have a local .env file with the DATABASE_URL set to the following:
# DATABASE_URL=postgresql://postgres:pw@localhost:5432/tefca_db
# Note: you must have a local .env file with the ERSD_API_KEY set to a key
# obtained from the ERSD API at https://ersd.aimsplatform.org/#/api-keys
volumes:
- ./vs_dump.sql:/docker-entrypoint-initdb.d/vs_dump.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 5s
retries: 20
# Flyway migrations and DB version control
flyway:
image: flyway/flyway:11-alpine
environment:
- JAVA_OPTS_APPEND="-XX:UseSVE=0"
command: -configFiles=/flyway/conf/flyway.conf -schemas=public -connectRetries=60 migrate
volumes:
- ./flyway/sql:/flyway/sql
- ./flyway/conf/flyway.conf:/flyway/conf/flyway.conf
depends_on:
db:
condition: service_started
# Keycloak for authentication
# Note: you must have a local .env file with a parameter AUTH_DISABLED.
# You may set it to true or false depending on what you'd like to test.
keycloak:
image: quay.io/keycloak/keycloak:26.1
ports:
- 8081:8080
volumes:
- ./keycloak:/opt/keycloak/data/import
environment:
JAVA_TOOL_OPTIONS: ${JAVA_TOOL_OPTIONS:-}
restart: always
command:
- start-dev
- --import-realm
# Aidbox
aidbox_db:
image: healthsamurai/aidboxdb:17
volumes:
- aidbox_pg_data:/var/lib/postgresql/data:delegated
environment:
POSTGRES_USER: aidbox
POSTGRES_PORT: "5432"
POSTGRES_DB: aidbox
POSTGRES_PASSWORD: gOxAmiyiz4
aidbox:
image: healthsamurai/aidboxone:stable
pull_policy: always
depends_on:
- aidbox_db
ports:
- 8080:8080
environment:
AIDBOX_TERMINOLOGY_SERVICE_BASE_URL: https://tx.fhir.org/r4
AIDBOX_FHIR_PACKAGES: hl7.fhir.r4.core#4.0.1
AIDBOX_FHIR_SCHEMA_VALIDATION: true
AIDBOX_CREATED_AT_URL: https://aidbox.app/ex/createdAt
AIDBOX_CLIENT_SECRET: L6AGe_5V2O
AIDBOX_CORRECT_AIDBOX_FORMAT: true
AIDBOX_ADMIN_PASSWORD: OC1MzJ5QNV
AIDBOX_COMPLIANCE: enabled
AIDBOX_SECURITY_AUDIT__LOG_ENABLED: true
BOX_SEARCH_FHIR__COMPARISONS: true
PGHOST: aidbox_db
BOX_COMPATIBILITY_VALIDATION_JSON__SCHEMA_REGEX: "#{:fhir-datetime}"
BOX_SEARCH_AUTHORIZE_INLINE_REQUESTS: true
PGUSER: aidbox
AIDBOX_PORT: 8080
PGDATABASE: aidbox
PGPASSWORD: gOxAmiyiz4
PGPORT: "5432"
BOX_SEARCH_INCLUDE_CONFORMANT: true
JAVA_TOOL_OPTIONS: ${JAVA_TOOL_OPTIONS:-}
env_file:
- .env
aidbox-seeder:
build:
context: .
dockerfile: Dockerfile.aidbox-seeder
volumes:
- ./src/app/tests/assets/GoldenSickPatient.json:/data/GoldenSickPatient.json
environment:
- AIDBOX_BASE_URL=http://localhost:8080
- APP_HOSTNAME=http://host.docker.internal:3000
depends_on:
db:
condition: service_healthy
aidbox:
condition: service_started
flyway:
condition: service_completed_successfully
volumes:
aidbox_pg_data: