Files
got-gaming/docker-compose.yml
2025-12-11 12:08:13 +01:00

37 lines
964 B
YAML

version: "3.8"
services:
got-app:
build:
context: .
dockerfile: Dockerfile
container_name: got-mc-app
ports:
- "3040:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=file:/app/data/dev.db
- NEXTAUTH_URL=http://localhost:3000
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-change-this-secret-in-production}
volumes:
# Persist database (override DATA_PATH env var to change location)
- ${PRISMA_DATA_PATH:-/Volumes/EXTERNAL_USB/sites/got-gaming/data}:/app/data
- ./prisma/migrations:/app/prisma/migrations
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=false"
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:3000/api/health || exit 1",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s