[Unit]
Description=DAK Zweitmeinungs-Portal Backend (FastAPI/Uvicorn)
After=network.target postgresql.service

[Service]
Type=simple
User=dak
Group=dak
WorkingDirectory=/opt/dak-portal/backend
Environment="PATH=/opt/dak-portal/backend/venv/bin:/usr/local/bin:/usr/bin"
EnvironmentFile=/opt/dak-portal/backend/.env
ExecStart=/opt/dak-portal/backend/venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 2
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
