-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 1.01 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
name: nissefhir
services:
postgres:
image: postgres:18-alpine
environment:
POSTGRES_DB: fhir
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d fhir"]
interval: 3s
timeout: 5s
retries: 30
volumes:
- nissefhir-postgres:/var/lib/postgresql/data
fhir-server:
image: ghcr.io/sintef/nissefhir:0.1.4
# To build locally instead, comment out 'image' above and uncomment:
# build:
# context: .
# dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/fhir
BIND_ADDR: 0.0.0.0:8080
JWT_MODE: "static"
JWT_SECRET: ${JWT_SECRET:?Set JWT_SECRET before starting docker-compose}
FHIR_BASE_URL: http://127.0.0.1:18080/fhir
SERVE_DOCS: "true"
RUST_LOG: fhir_server=info,tower_http=info
ports:
- "8080:8080"
volumes:
nissefhir-postgres: