Some checks failed
CI / ci (push) Failing after 14s
Replace local build with prebuilt image Image: gitea.jeanlucmakiola.de/makiolaj/gearbox:latest
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:
|