feat: update otter deployment

This commit is contained in:
Jef Roosens 2025-06-17 18:32:56 +02:00
parent 6d50983f84
commit b2ea4ad0d3
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
3 changed files with 49 additions and 10 deletions

View file

@ -1,13 +1,13 @@
[Unit]
Description=Gpodder.net API implementation
After=docker.service
Requires=docker.service
After=network.target network-online.target
[Service]
Type=exec
WorkingDirectory=/etc/otter
ExecStart=/usr/bin/docker compose up
ExecStop=/usr/bin/docker compose down
User=otter
Group=otter
ExecStart=/usr/local/bin/otter serve -c /etc/otter/otter.toml
Restart=always
[Install]
WantedBy=multi-user.target