Files
got-gaming/docker-compose.yml

35 lines
792 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
- ./data:/app/data
- ./prisma/migrations:/app/prisma/migrations
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:3000/api/health || exit 1",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s