feat: Implement comprehensive backup web application with Docker, systemd service, and Gunicorn support

This commit is contained in:
Peter Wood
2025-06-18 10:02:07 -04:00
parent 6d726cb015
commit 8cd33d4568
11 changed files with 799 additions and 42 deletions

24
backup-web-app.service Normal file
View File

@@ -0,0 +1,24 @@
[Unit]
Description=Backup Web Application
After=network.target
Wants=network.target
[Service]
Type=simple
User=acedanger
Group=acedanger
WorkingDirectory=/home/acedanger/shell
Environment=PATH=/usr/bin:/usr/local/bin
Environment=BACKUP_ROOT=/mnt/share/media/backups
Environment=FLASK_ENV=production
Environment=PORT=5000
ExecStart=/usr/bin/python3 /home/acedanger/shell/backup-web-app.py
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target