job "deluge" { group "deluge" { network { //mode = "bridge" port "http" { to = 8112 } } task "wireguard" { driver = "docker" lifecycle { hook = "prestart" sidecar = true } config { image = "thrnz/docker-wireguard-pia:latest" privileged = true ports = ["http"] } env { LOC = "aus_melbourne" LOCAL_NETWORK = "192.168.1.0/24" # PORT_FORWARDING = "1" # TODO: Find a way to tell deluge the forwarded port, the wireguard container outputs it /pia-shared/port.dat } template { data = <