-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
42 lines (39 loc) · 1.18 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
42 lines (39 loc) · 1.18 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
# VeriFHIR Gateway — Production deployment (v0.2.0)
#
# Usage:
# curl -O https://raw.githubusercontent.com/vagnercazarotto/verifhir-gateway/main/docker-compose.prod.yml
# docker compose -f docker-compose.prod.yml up -d
#
# Images are pulled from GitHub Container Registry (no build required).
services:
gateway:
image: ghcr.io/vagnercazarotto/verifhir-gateway:v0.2.0
pull_policy: always
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
# To use PostgreSQL instead of SQLite, uncomment and set DATABASE_URL:
# - DATABASE_URL=postgres://user:pass@db:5432/verifhir?sslmode=disable
volumes:
- gateway-data:/app/.local
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/healthz"]
interval: 15s
timeout: 5s
retries: 3
web:
image: ghcr.io/vagnercazarotto/verifhir-web:v0.2.0
pull_policy: always
ports:
- "3000:80"
depends_on:
gateway:
condition: service_healthy
restart: unless-stopped
volumes:
gateway-data: