Switch remaining services from nomad host volumes to docker volumes.
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user