compute_os/deploy/compute-service-manager.ser...

19 lines
539 B
Plaintext

[Unit]
Description=Compute Service Manager API
After=network.target
[Service]
Type=simple
User=REPLACE_WITH_SERVICE_ACCOUNT
WorkingDirectory=/opt/compute-service-manager/backend
EnvironmentFile=/etc/compute-service-manager.env
Environment=XDG_RUNTIME_DIR=/run/user/REPLACE_WITH_UID
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/REPLACE_WITH_UID/bus
ExecStart=/opt/compute-service-manager/backend/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target