Cleanup
This commit is contained in:
parent
d09646b479
commit
cf8ce83438
|
@ -3,7 +3,7 @@
|
|||
job [[ .acme.instance | toJSON ]] {
|
||||
type = "[[ if ne "" .acme.cron ]]service[[ else ]]batch[[ end ]]"
|
||||
|
||||
[[- template "common/job_start.tpl" $c ]]
|
||||
[[- template "common/job_start" $c ]]
|
||||
|
||||
group "acme-to-vault" {
|
||||
|
||||
|
@ -16,10 +16,10 @@ job [[ .acme.instance | toJSON ]] {
|
|||
}
|
||||
|
||||
service {
|
||||
name = "[[ .acme.instance ]][[ $c.consul.suffix ]]"
|
||||
name = "[[ .acme.instance ]][[ .consul.suffix ]]"
|
||||
port = 8787
|
||||
|
||||
[[ template "common/connect.tpl" merge .acme . ]]
|
||||
[[ template "common/connect" merge $c ]]
|
||||
|
||||
tags = [
|
||||
"[[ $c.traefik.instance ]].enable=true",
|
||||
|
@ -27,7 +27,7 @@ job [[ .acme.instance | toJSON ]] {
|
|||
"[[ $c.traefik.instance ]].http.routers.[[ .acme.instance ]][[ .consul.suffix ]].rule=Host(`fake-acme-host`) || PathPrefix(`/.well-known/acme-challenge/`)",
|
||||
"[[ $c.traefik.instance ]].http.routers.[[ .acme.instance ]][[ .consul.suffix ]].priority=[[ $c.traefik.priority ]]",
|
||||
"[[ $c.traefik.instance ]].http.routers.[[ .acme.instance ]][[ .consul.suffix ]].entrypoints=[[ join $c.traefik.entrypoints "," ]]",
|
||||
"[[ $c.traefik.instance ]].http.routers.[[ .acme.instance ]][[ .consul.suffix ]].middlewares=[[ template "common/traefik_middlewares.tpl" $c.traefik ]]"
|
||||
"[[ $c.traefik.instance ]].http.routers.[[ .acme.instance ]][[ .consul.suffix ]].middlewares=[[ template "common/traefik_middlewares" $c.traefik ]]"
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -39,18 +39,18 @@ job [[ .acme.instance | toJSON ]] {
|
|||
image = [[ .acme.image | toJSON ]]
|
||||
readonly_rootfs = true
|
||||
pids_limit = 20
|
||||
[[ template "common/tmpfs.tpl" dict "target" "/data" "size" "10000000" ]]
|
||||
[[ template "common/tmpfs" dict "target" "/data" "size" "10000000" ]]
|
||||
}
|
||||
|
||||
vault {
|
||||
policies = ["[[ .acme.instance ]][[ $c.consul.suffix ]]"]
|
||||
policies = ["[[ .acme.instance ]][[ .consul.suffix ]]"]
|
||||
}
|
||||
|
||||
env {
|
||||
[[- template "common/proxy_env.tpl" . -]]
|
||||
[[- template "common/proxy_env" . -]]
|
||||
}
|
||||
|
||||
[[- template "common/file_env.tpl" $c.env ]]
|
||||
[[- template "common/file_env" $c.env ]]
|
||||
|
||||
template {
|
||||
data =<<_EOT
|
||||
|
@ -91,7 +91,7 @@ _EOT
|
|||
env = true
|
||||
}
|
||||
|
||||
[[ template "common/resources.tpl" .acme.resources ]]
|
||||
[[ template "common/resources" .acme.resources ]]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue