pounce/systemd/pounce-backend.service
Yves Gugger 815f08dac0
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Use systemd restart in deploy.sh + avoid log permission issues
2025-12-17 12:57:36 +01:00

25 lines
546 B
Desktop File

[Unit]
Description=Pounce Backend API (FastAPI/Uvicorn)
After=network.target postgresql.service
Wants=postgresql.service
[Service]
Type=simple
User=user
Group=user
WorkingDirectory=/home/user/pounce/backend
Environment="PATH=/home/user/pounce/backend/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/home/user/pounce/backend/venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
# Hardening
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target