Files
sofa/docker-compose.yml
T
2026-03-01 13:23:54 -05:00

25 lines
641 B
YAML

services:
sofa:
build: .
image: sofa
container_name: sofa
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- sofa-data:/data
environment:
- DATABASE_URL=file:/data/sqlite.db
- TMDB_API_KEY=${TMDB_API_KEY}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BETTER_AUTH_URL=${BETTER_AUTH_URL:-http://localhost:3000}
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3000/api/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]
interval: 30s
timeout: 10s
start_period: 30s
retries: 3
volumes:
sofa-data: