RyanJ
RyanJ
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
Hi there @Darth-Penguini and friends! I'm encountering a strange error when attempting to deploy dex, after following instructions here: https://geek-cookbook.funkypenguin.co.nz/docker-swarm/traefik-forward-auth/dex-static/ Running the following: docker stack deploy dex -c /var/data/dex/dex.yml Gives me the following error: services.whoami.deploy.labels array items[3,9] must be unique My labels, from /var/data/dex/dex.yml, are as follows (domain.tld being replaced by my actual domain):
# This simply validates that traefik forward authentication is working
whoami:
image: containous/whoami
networks:
- traefik_public
deploy:
labels:
# traefik
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"

# traefikv1
- "traefik.frontend.rule=Host:whoami.domain.tld"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181"
- "traefik.frontend.auth.forward.authResponseHeaders=X-Forwarded-User"
- "traefik.frontend.auth.forward.trustForwardHeader=true"

# traefikv2
- "traefik.http.routers.whoami.rule=Host(`whoami.domain.tld`)"
- "traefik.http.routers.whoami.entrypoints=https"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.http.routers.whoami.middlewares=forward-auth"

networks:
traefik_public:
external: true
# This simply validates that traefik forward authentication is working
whoami:
image: containous/whoami
networks:
- traefik_public
deploy:
labels:
# traefik
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"

# traefikv1
- "traefik.frontend.rule=Host:whoami.domain.tld"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181"
- "traefik.frontend.auth.forward.authResponseHeaders=X-Forwarded-User"
- "traefik.frontend.auth.forward.trustForwardHeader=true"

# traefikv2
- "traefik.http.routers.whoami.rule=Host(`whoami.domain.tld`)"
- "traefik.http.routers.whoami.entrypoints=https"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.http.routers.whoami.middlewares=forward-auth"

networks:
traefik_public:
external: true
I've double checked spelling and searched for hours but I'm stuck and unable to progress past this point. Any help on figuring this out would be greatly appreciated.
94 replies