From af2e26504a852c722c9727bea7c51f57a0d0387a Mon Sep 17 00:00:00 2001 From: Rohith Balaji Date: Tue, 23 Nov 2021 16:52:08 +0530 Subject: [PATCH] Removed a Tab Space for Traefik Labels Traefik doesn't detect if the labels are indented another level I was stuck for over an hour trying to figure out if I setup something wrong. I shouldn't have copy pasted without checking once. --- docs/docker-swarm.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/docker-swarm.md b/docs/docker-swarm.md index 692d5118..fdaa1675 100644 --- a/docs/docker-swarm.md +++ b/docs/docker-swarm.md @@ -156,18 +156,18 @@ services: deploy: restart_policy: condition: on-failure - labels: - - "traefik.docker.network=traefik-public" - - "traefik.enable=true" - - "traefik.constraint-label=traefik-public" - - "traefik.http.routers.erpnext-nginx.rule=Host(${SITES?Variable SITES not set})" - - "traefik.http.routers.erpnext-nginx.entrypoints=http" - - "traefik.http.routers.erpnext-nginx.middlewares=https-redirect" - - "traefik.http.routers.erpnext-nginx-https.rule=Host(${SITES?Variable SITES not set})" - - "traefik.http.routers.erpnext-nginx-https.entrypoints=https" - - "traefik.http.routers.erpnext-nginx-https.tls=true" - - "traefik.http.routers.erpnext-nginx-https.tls.certresolver=le" - - "traefik.http.services.erpnext-nginx.loadbalancer.server.port=8080" + labels: + - "traefik.docker.network=traefik-public" + - "traefik.enable=true" + - "traefik.constraint-label=traefik-public" + - "traefik.http.routers.erpnext-nginx.rule=Host(${SITES?Variable SITES not set})" + - "traefik.http.routers.erpnext-nginx.entrypoints=http" + - "traefik.http.routers.erpnext-nginx.middlewares=https-redirect" + - "traefik.http.routers.erpnext-nginx-https.rule=Host(${SITES?Variable SITES not set})" + - "traefik.http.routers.erpnext-nginx-https.entrypoints=https" + - "traefik.http.routers.erpnext-nginx-https.tls=true" + - "traefik.http.routers.erpnext-nginx-https.tls.certresolver=le" + - "traefik.http.services.erpnext-nginx.loadbalancer.server.port=8080" erpnext-python: image: frappe/erpnext-worker:${ERPNEXT_VERSION?Variable ERPNEXT_VERSION not set}