29 lines
696 B
Text
29 lines
696 B
Text
[Unit]
|
|
Description=Port forward updater for qbittorrent over gluetun
|
|
After=gluetun.service
|
|
After=qbittorrent.service
|
|
BindsTo=gluetun.service
|
|
BindsTo=qbittorrent.service
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
TimeoutStartSec=900
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Container]
|
|
# TODO: Replace this with one that has tags
|
|
# Probably have to repack my own
|
|
Image=docker.io/mjmeli/qbittorrent-port-forward-gluetun-server:latest
|
|
ContainerName=qbittorrent-port-forward
|
|
HostName=qbittorrent-port-forward
|
|
AutoUpdate=registry
|
|
|
|
Network=container:gluetun
|
|
|
|
Environment=QBT_USERNAME=$qbt_user
|
|
Environment=QBT_PASSWORD=$qbt_password
|
|
Environment=QBT_ADDR=http://localhost:8080
|
|
Environment=GTN_ADDR=http://localhost:8000
|
|
|