config whoami
This commit is contained in:
parent
13c2685f6e
commit
4b260e06a7
1 changed files with 14 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue