mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
25 lines
641 B
YAML
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:
|