Files
SixFlagsSuperCalendar/docker-compose.yml
T
josh 3c91d9a453
Build and Deploy / Build & Push (push) Successful in 1m7s
fix: mount volume at correct path so database survives updates
WORKDIR is /app/backend so the DB lands at /app/backend/data/parks.db,
but the volume was mounted at /app/data — a different directory. The DB
lived in the container's ephemeral layer and was wiped on every pull.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-24 09:13:59 -04:00

26 lines
583 B
YAML

services:
web:
image: gitea.thewrightserver.net/josh/sixflagssupercalendar:web
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- BACKEND_URL=http://backend:3001
- TZ=America/New_York
restart: unless-stopped
backend:
image: gitea.thewrightserver.net/josh/sixflagssupercalendar:backend
ports:
- "3001:3001"
volumes:
- park_data:/app/backend/data
environment:
- NODE_ENV=production
- TZ=America/New_York
- PARK_HOURS_STALENESS_HOURS=72
restart: unless-stopped
volumes:
park_data: