config whoami

This commit is contained in:
kekskurse 2024-08-12 13:10:09 +02:00
parent 13c2685f6e
commit 4b260e06a7

View file

@ -30,17 +30,20 @@ services:
networks:
- proxy
#whoami:
# image: "traefik/whoami"
#container_name: "simple-service"
#restart: always
#labels:
# - "traefik.enable=true"
#- "traefik.http.routers.whoami.rule=Host(`{{ inventory_hostname }}`)"
#- "traefik.http.routers.whoami.entrypoints=websecure"
#- "traefik.http.routers.whoami.tls.certresolver=myresolver"
#networks:
# - proxy
{% if whoami %}
whoami:
image: "traefik/whoami"
container_name: "simple-service"
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`{{ inventory_hostname }}`)"
- "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
networks:
- proxy
{% endif %}
networks:
proxy: