Files
Dota-Zombie-Invasion/backend/compose.prod.yml
T
achmad 2a3a56456c feat: add production docker compose file
Add compose.prod.yml for production deployments using pre-built image
from registry.achmad.dev/dota-zombie-invasion:latest with healthcheck
and env-var-based admin password configuration.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-29 17:27:35 +07:00

19 lines
500 B
YAML

services:
app:
image: registry.achmad.dev/dota-zombie-invasion:latest
pull_policy: always
ports:
- "6100:3000"
volumes:
- ./data:/app/data
environment:
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/admin/check"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s