[Unit] Description=Navi hive (swarm address book) After=network-online.target Wants=network-online.target [Service] Type=simple # Edit before installing: the user that owns the repo clone and the clone path. User=EDIT_ME WorkingDirectory=EDIT_ME/navi-1 Environment=PYTHONIOENCODING=utf-8 ExecStart=EDIT_ME/navi-1/.venv/bin/uvicorn hive.app:app --host 0.0.0.0 --port 8087 Restart=always RestartSec=3 [Install] WantedBy=multi-user.target