nested mapping for traefik labels.

This commit is contained in:
colin 2024-01-21 20:20:29 +00:00
parent ccfeaa1c09
commit fb75a08160
1 changed files with 29 additions and 8 deletions

View File

@ -26,16 +26,37 @@ services:
# placement:
# constraints:
# - 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:
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"
traefik:
enable: "true"
docker:
network: "traefik"
http:
routers:
production-haste_haste:
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
restart_policy:
condition: on-failure