mirror of
https://github.com/luigieai/homelab.git
synced 2025-06-07 07:56:37 -03:00
wgeasy template
This commit is contained in:
parent
f534301a3b
commit
4b2fe5ad27
1 changed files with 51 additions and 0 deletions
51
containers/wg-easy.hcl
Normal file
51
containers/wg-easy.hcl
Normal file
|
@ -0,0 +1,51 @@
|
|||
job "wg-easy" {
|
||||
|
||||
datacenters = ["dc"]
|
||||
|
||||
type = "service"
|
||||
|
||||
group "wg-easy" {
|
||||
count = 1
|
||||
|
||||
task "wg-easy" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "weejewel/wg-easy"
|
||||
ports = ["vpn", "webui"]
|
||||
network_mode = "host"
|
||||
volumes = [
|
||||
"${NOMAD_ALLOC_DIR}/wg-easy:/etc/wireguard",
|
||||
]
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
network {
|
||||
mode = "host"
|
||||
|
||||
port "vpn" {
|
||||
static = 51820
|
||||
to = 51820
|
||||
}
|
||||
port "webui" {
|
||||
static = 51821
|
||||
to = 51821
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
service {
|
||||
name = "wgeasy"
|
||||
port = "webui"
|
||||
provider = "nomad"
|
||||
check {
|
||||
type = "http"
|
||||
path = "/"
|
||||
interval = "20s"
|
||||
timeout = "60s"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue