-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (56 loc) · 1.63 KB
/
docker-compose.yaml
File metadata and controls
57 lines (56 loc) · 1.63 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
services:
# PostgreSQL for Aidbox
aidbox-db:
image: postgres:16
command:
- postgres
- -c
- shared_buffers=256MB
- -c
- work_mem=32MB
environment:
POSTGRES_USER: ${AIDBOX_DB_USER:-postgres}
POSTGRES_PASSWORD: ${AIDBOX_DB_PASSWORD}
POSTGRES_DB: aidbox
volumes:
- ./data/aidbox-pg:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${AIDBOX_DB_USER:-postgres} -d aidbox"]
interval: 5s
timeout: 5s
retries: 10
# Aidbox FHIR Server
aidbox:
image: healthsamurai/aidboxone:latest
depends_on:
aidbox-db:
condition: service_healthy
environment:
AIDBOX_LICENSE_ID: ${AIDBOX_LICENSE_ID}
AIDBOX_LICENSE: ${AIDBOX_LICENSE_KEY}
AIDBOX_ADMIN_ID: ${AIDBOX_ADMIN_ID}
AIDBOX_ADMIN_PASSWORD: ${AIDBOX_ADMIN_PASSWORD}
AIDBOX_CLIENT_ID: ${AIDBOX_ADMIN_ID}
AIDBOX_CLIENT_SECRET: ${AIDBOX_ADMIN_PASSWORD}
AIDBOX_BASE_URL: ${AIDBOX_BASE_URL:-http://localhost:8080}
AIDBOX_PORT: 8080
AIDBOX_FHIR_VERSION: 4.0.1
AIDBOX_FHIR_SCHEMA_VALIDATION: "false"
BOX_FEATURES_VALIDATION_SKIP__EXTRA: "true"
PGHOST: aidbox-db
PGPORT: 5432
PGDATABASE: aidbox
PGUSER: ${AIDBOX_DB_USER:-postgres}
PGPASSWORD: ${AIDBOX_DB_PASSWORD}
ports:
- "${AIDBOX_HOST_PORT:-8085}:8080"
volumes:
- ./aidbox/seed:/var/aidbox/seed:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 10s
timeout: 5s
retries: 20
start_period: 60s