diff --git a/README.md b/README.md index 37b9af4..a741db1 100644 --- a/README.md +++ b/README.md @@ -18,15 +18,20 @@ python3 -m venv .venv pip install requirements.txt ``` -## Building the container +```systemd +# /etc/systemd/system/adrianux.service +[Unit] +Description=WSGI app +After=network.target -``` -# build -t adrianux: . +[Service] +Type=simple +User=adrianux +WorkingDirectory=/opt/Adrianux.net +ExecStart=/opt/Adrianux.net/.venv/bin/waitress-serve --listen=127.0.0.1:8080 app:app +Restart=always + +[Install] +WantedBy=multi-user.target ``` - -## Running the container - -``` -# run adrianux: -```