-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 872 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 872 Bytes
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
services:
gateway:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080" # REST API
- "2575:2575" # MLLP
environment:
- GATEWAY_HTTP_PORT=8080
- GATEWAY_MLLP_ADDR=0.0.0.0:2575
- GATEWAY_DB_PATH=.local/verifhir.db
# Uncomment to override with PostgreSQL:
# - DATABASE_URL=postgres://user:pass@db:5432/verifhir?sslmode=disable
volumes:
- ./configs:/app/configs:ro
- gateway-data:/app/.local
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/healthz"]
interval: 15s
timeout: 5s
retries: 3
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
gateway:
condition: service_healthy
restart: unless-stopped
volumes:
gateway-data: