[Unit]
Description=Design System Server (DSS) - Portable Server
Documentation=https://github.com/overbits/design-system-swarm
After=network.target

[Service]
Type=simple
User=overbits
Group=overbits
WorkingDirectory=/home/overbits/apps/design-system-swarm/tools/api
Environment=PATH=/home/overbits/.local/bin:/usr/local/bin:/usr/bin:/bin
Environment=PYTHONPATH=/home/overbits/apps/design-system-swarm/tools
Environment=PORT=3456
Environment=HOST=127.0.0.1
Environment=NODE_ENV=production
ExecStart=/usr/bin/python3 -m uvicorn server:app --host 127.0.0.1 --port 3456
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=dss

[Install]
WantedBy=multi-user.target
