Add systemd service file and installation guide

Adds krafttrainer.service for running as a systemd unit and expands
deployment.md with step-by-step instructions for both systemd and Docker deployment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christoph K.
2026-03-21 23:59:04 +01:00
parent a954f2c59d
commit c992e2775c
2 changed files with 90 additions and 1 deletions

17
krafttrainer.service Normal file
View File

@@ -0,0 +1,17 @@
[Unit]
Description=Krafttrainer Web App
After=network.target
[Service]
Type=simple
User=christoph
WorkingDirectory=/home/christoph/krafttrainer
ExecStart=/home/christoph/krafttrainer/krafttrainer
Restart=on-failure
RestartSec=5
Environment=PORT=8090
Environment=DB_PATH=/home/christoph/krafttrainer/krafttrainer.db
[Install]
WantedBy=multi-user.target