All checks were successful
CI / ci (push) Successful in 20s
Add README with Docker setup instructions for self-hosting. Update docker-compose.yml to use the pre-built registry image instead of local build, and add a healthcheck against /api/health. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
625 B
YAML
24 lines
625 B
YAML
services:
|
|
gearbox:
|
|
image: gitea.jeanlucmakiola.de/makiolaj/gearbox:latest
|
|
container_name: gearbox
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATABASE_PATH=./data/gearbox.db
|
|
volumes:
|
|
- gearbox-data:/app/data
|
|
- gearbox-uploads:/app/uploads
|
|
healthcheck:
|
|
test: ["CMD", "bun", "-e", "fetch('http://localhost:3000/api/health').then(r=>r.ok?process.exit(0):process.exit(1)).catch(()=>process.exit(1))"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 10s
|
|
retries: 3
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
gearbox-data:
|
|
gearbox-uploads:
|