[Unit]
Description=Maskinrommet — Synops Rust API og jobbkø
After=docker.service
Requires=docker.service

[Service]
Type=simple
User=vegard
WorkingDirectory=/home/vegard/synops
ExecStartPre=/home/vegard/synops/scripts/maskinrommet-env.sh
ExecStartPre=/etc/iptables-maskinrommet.sh
EnvironmentFile=/tmp/maskinrommet.env
ExecStart=/home/vegard/synops/maskinrommet/target/release/maskinrommet
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
