Files
HolodoriCalc/compose.prod.yaml

27 lines
664 B
YAML

services:
app:
build:
context: .
target: runtime
container_name: holodream-tools
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 3000
ORIGIN: ${ORIGIN:-http://localhost:3000}
DATABASE_URL: /app/data/holodream.db
ports:
- "3000:3000"
volumes:
- sqlite_data:/app/data
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3000/api/health').then((response) => { if (!response.ok) process.exit(1); }).catch(() => process.exit(1))"]
interval: 10s
timeout: 3s
start_period: 10s
retries: 5
restart: unless-stopped
volumes:
sqlite_data: