Switch remaining services from nomad host volumes to docker volumes.

This commit is contained in:
2023-07-21 06:59:32 +01:00
parent 0e7a34a341
commit 496e3c9e44
4 changed files with 9 additions and 39 deletions

View File

@@ -15,11 +15,6 @@ job "traefik" {
}
}
volume "config" {
type = "host"
source = "config"
}
task "traefik" {
driver = "docker"
@@ -51,17 +46,13 @@ job "traefik" {
]
}
volume_mount {
volume = "config"
destination = "/config"
}
config {
image = "traefik:latest"
ports = ["http", "https", "admin"]
network_mode = "host"
volumes = [
"local/traefik.yml:/etc/traefik/traefik.yml",
"/data/compute/config/traefik:/config",
]
}
@@ -107,7 +98,7 @@ serversTransport:
providers:
file:
directory: /config/traefik/rules
directory: /config/rules
watch: true
consulcatalog:
@@ -119,7 +110,7 @@ certificatesResolvers:
letsencrypt:
acme:
email: petru@paler.net
storage: /config/traefik/acme/acme.json
storage: /config/acme/acme.json
tlsChallenge: {}
global:
@@ -147,7 +138,8 @@ EOH
KEEPALIVED_VIRTUAL_ROUTES = ""
}
config {
image = "visibilityspots/keepalived"
# 2.2.8 wasn't starting, reason unknown
image = "visibilityspots/keepalived:2.2.7"
network_mode = "host"
privileged = true
cap_add = ["NET_ADMIN", "NET_BROADCAST", "NET_RAW"]