feat: adguard in nomad deploy

This commit is contained in:
Luigi Oliveira 2023-08-03 00:27:13 -03:00
parent d7a86294b8
commit 4f3e40d2b6
2 changed files with 61 additions and 2 deletions

61
containers/adguard.hcl Normal file
View file

@ -0,0 +1,61 @@
job "adguard" {
datacenters = ["dc"]
type = "service"
group "adguard-g" {
count = 1
ephemeral_disk {
size = 500 // MB
sticky = true
}
task "adguard"{
driver = "docker"
config {
image = "adguard/adguardhome"
ports = ["ad-ui", "ad-dns", "ad-install"]
network_mode = "host"
volumes = [
"${NOMAD_ALLOC_DIR}/adguard-work:/opt/adguardhome/conf",
"${NOMAD_ALLOC_DIR}/adguard-conf:/opt/adguardhome/work"
]
}
}
network {
mode = "host"
port "ad-ui" {
static = 8080
to = 80
}
port "ad-dns" {
static = 53
to = 53
}
port "ad-install" {
static = 3000
to = 3000
}
}
service {
name = "adguard"
port = "ad-ui"
provider = "nomad"
check {
type = "http"
path = "/"
interval = "20s"
timeout = "60s"
}
}
}
}

View file

@ -17,7 +17,5 @@ services:
- csgoretake:/home/csgo/server - csgoretake:/home/csgo/server
network_mode: host network_mode: host
volumes: volumes:
csgoretake: csgoretake: