26 lines
837 B
YAML
26 lines
837 B
YAML
services:
|
|
whoami:
|
|
image: traefik/whoami
|
|
networks:
|
|
- traefik_proxy
|
|
deploy:
|
|
labels:
|
|
# Enable Service discovery for Traefik
|
|
- "traefik.enable=true"
|
|
# Define the WHoami router rule
|
|
- "traefik.http.routers.whoami.rule=Host(`whoami.lan.xbazzi.com`)"
|
|
# Expose Whoami on the HTTPS entrypoint
|
|
- "traefik.http.routers.whoami.entrypoints=websecure"
|
|
# - "traefik.http.routers.whoami.entrypoints=web"
|
|
# Enable TLS
|
|
- "traefik.http.routers.whoami.tls=true"
|
|
# - "traefik.http.routers.whoami.tls=false"
|
|
# Expose the whoami port number to Traefik
|
|
- "traefik.http.services.whoami.loadbalancer.server.port=80"
|
|
placement:
|
|
constraints:
|
|
- node.role != manager
|
|
|
|
networks:
|
|
traefik_traefik_proxy:
|
|
external: true |