mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 00:00:13 -08:00
feat: Implement comprehensive backup web application with Docker, systemd service, and Gunicorn support
This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
backup-web-app:
|
||||
build: .
|
||||
container_name: backup-web-app
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- /mnt/share/media/backups:/data/backups:ro
|
||||
- ./logs:/app/logs
|
||||
environment:
|
||||
- BACKUP_ROOT=/data/backups
|
||||
- FLASK_ENV=production
|
||||
- PORT=5000
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
Reference in New Issue
Block a user