nested mapping for traefik labels.
This commit is contained in:
parent
ccfeaa1c09
commit
fb75a08160
|
@ -26,16 +26,37 @@ services:
|
||||||
# placement:
|
# placement:
|
||||||
# constraints:
|
# constraints:
|
||||||
# - node.hostname == macmini3
|
# - node.hostname == macmini3
|
||||||
|
# labels:
|
||||||
|
# us.nixc.autodeploy: "true"
|
||||||
|
# traefik.enable: "true"
|
||||||
|
# traefik.http.routers.production-haste_haste.rule: "Host(`haste.nixc.us`)"
|
||||||
|
# traefik.http.routers.production-haste_haste.entrypoints: "websecure"
|
||||||
|
# traefik.http.routers.production-haste_haste.tls: "true"
|
||||||
|
# traefik.http.routers.production-haste_haste.tls.certresolver: "letsencryptresolver"
|
||||||
|
# traefik.http.routers.production-haste_haste.service: "production-haste_haste"
|
||||||
|
# traefik.http.services.production-haste_haste.loadbalancer.server.port: "7777"
|
||||||
|
# traefik.docker.network: "traefik"
|
||||||
labels:
|
labels:
|
||||||
us.nixc.autodeploy: "true"
|
us.nixc.autodeploy: "true"
|
||||||
traefik.enable: "true"
|
traefik:
|
||||||
traefik.http.routers.production-haste_haste.rule: "Host(`haste.nixc.us`)"
|
enable: "true"
|
||||||
traefik.http.routers.production-haste_haste.entrypoints: "websecure"
|
docker:
|
||||||
traefik.http.routers.production-haste_haste.tls: "true"
|
network: "traefik"
|
||||||
traefik.http.routers.production-haste_haste.tls.certresolver: "letsencryptresolver"
|
http:
|
||||||
traefik.http.routers.production-haste_haste.service: "production-haste_haste"
|
routers:
|
||||||
traefik.http.services.production-haste_haste.loadbalancer.server.port: "7777"
|
production-haste_haste:
|
||||||
traefik.docker.network: "traefik"
|
rule: "Host(`haste.nixc.us`)"
|
||||||
|
entrypoints: "websecure"
|
||||||
|
tls: "true"
|
||||||
|
tls:
|
||||||
|
certresolver: "letsencryptresolver"
|
||||||
|
service: "production-haste_haste"
|
||||||
|
services:
|
||||||
|
production-haste_haste:
|
||||||
|
loadbalancer:
|
||||||
|
server:
|
||||||
|
port: "7777"
|
||||||
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
Loading…
Reference in New Issue