Repository navigation
Expand file tree
/
Copy pathdocker-compose.servers.yml
More file actions
73 lines (70 loc) · 2.33 KB
/
Copy pathdocker-compose.servers.yml
File metadata and controls
73 lines (70 loc) · 2.33 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
# The FHIR servers under test. docker-compose.yml extends these services, and
# you can also start them alone, for example when you run Inferno with
# `bundle exec inferno start`:
#
# docker compose -f docker-compose.servers.yml up -d
services:
hapi:
image: hapiproject/hapi:${HAPI_TAG:-v9.0.0-1}
ports:
- "8090:8080"
environment:
hapi.fhir.fhir_version: R4
hapi.fhir.client_id_strategy: ALPHANUMERIC
aidbox_db:
image: postgres:17
volumes:
- aidbox_db_data:/var/lib/postgresql/data
command: [postgres, -c, shared_preload_libraries=pg_stat_statements]
environment:
POSTGRES_USER: aidbox
POSTGRES_PASSWORD: aidbox
POSTGRES_DB: aidbox
healthcheck:
test: [CMD-SHELL, pg_isready -U aidbox -d aidbox]
interval: 2s
timeout: 5s
retries: 30
aidbox:
image: healthsamurai/aidboxone:${AIDBOX_TAG:-stable}
depends_on:
aidbox_db:
condition: service_healthy
ports:
- "8888:8080"
env_file:
# Put AIDBOX_LICENSE=<your license> here. Without it, open
# http://localhost:8888 once and activate Aidbox in the browser.
- path: .env.aidbox
required: false
environment:
BOX_ADMIN_PASSWORD: password
BOX_ROOT_CLIENT_SECRET: secret
BOX_BOOTSTRAP_FHIR_PACKAGES: hl7.fhir.r4.core#4.0.1
BOX_DB_HOST: aidbox_db
BOX_DB_PORT: '5432'
BOX_DB_DATABASE: aidbox
BOX_DB_USER: aidbox
BOX_DB_PASSWORD: aidbox
BOX_FHIR_COMPLIANT_MODE: 'true'
BOX_FHIR_CORRECT_AIDBOX_FORMAT: 'true'
BOX_FHIR_CREATEDAT_URL: https://aidbox.app/ex/createdAt
BOX_FHIR_SCHEMA_VALIDATION: 'true'
BOX_FHIR_SEARCH_COMPARISONS: 'true'
BOX_FHIR_SEARCH_CHAIN_SUBSELECT: 'true'
BOX_FHIR_TERMINOLOGY_SERVICE_BASE_URL: https://tx.health-samurai.io/fhir
# Spec-conformant _include / _revinclude. Set AIDBOX_INCLUDE_CONFORMANT=false
# to compare with the legacy behaviour.
BOX_FHIR_SEARCH_INCLUDE_CONFORMANT: ${AIDBOX_INCLUDE_CONFORMANT:-true}
BOX_SECURITY_DEV_MODE: 'true'
BOX_SETTINGS_MODE: read-write
BOX_WEB_BASE_URL: http://localhost:8888
BOX_WEB_PORT: 8080
healthcheck:
test: curl -sf http://localhost:8080/health || exit 1
interval: 5s
timeout: 5s
retries: 90
start_period: 30s
volumes:
aidbox_db_data: {}