baktainer/docker-compose.yml
James Paterni a68196431f
Some checks are pending
Test and Build Docker Image / test (push) Waiting to run
Test and Build Docker Image / build (push) Blocked by required conditions
Fix health check server by using Puma with Rack directly
- Replace Sinatra run! calls with direct Puma::Server usage
- Use Rack-compatible approach to avoid Sinatra::Wrapper issues
- Remove problematic set method calls and run! method calls
- Both integrated and standalone health servers now use same Puma/Rack approach
- Remove outdated baktainer/logger require from main file

This should resolve the undefined method errors with Sinatra::Wrapper.
2025-07-14 23:15:26 -04:00

25 lines
698 B
YAML

services:
baktainer:
build: .
image: jamez001/baktainer:latest
container_name: baktainer
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./backups:/backups
- ./config:/config
- /var/run/docker.sock:/var/run/docker.sock
environment:
- BT_HEALTH_SERVER_ENABLED=true
- BT_HEALTH_PORT=8080
- "BT_DOCKER_URL=unix:///var/run/docker.sock"
- BT_CRON=0 0 * * * # Backup every day at midnight
- BT_THREADS=4 # Number of threads to use for backups
- BT_BACKUP_DIR=/backups
- BT_LOG_LEVEL=info
# Enable if using SSL over tcp
#- BT_SSL = true
#- BT_CA
#- BT_CERT
#- BT_KEY