diff --git a/2-nomad-config/deluge.nomad.hcl b/2-nomad-config/deluge.nomad.hcl new file mode 100644 index 0000000..d95cab4 --- /dev/null +++ b/2-nomad-config/deluge.nomad.hcl @@ -0,0 +1,120 @@ +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 = <