Skip to content

Commit

Permalink
Add whoami containers (commented) in compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
abmruman committed Feb 5, 2020
1 parent 1005dbc commit a71a3e1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,40 @@ services:
traefik.http.routers.traefik.tls.certresolver: leresolver
traefik.http.routers.traefik.middlewares: dashboard
traefik.http.middlewares.dashboard.basicauth.users: ${DASHBOARD_USER}:${DASHBOARD_PASSWORD} # from .env
## Uncomment these to test
# whoami:
# image: containous/whoami:v1.3.0
# command:
# - --port=8082 # Our service listens on 8082
# networks:
# # Has to be in the same network as Traefik
# - net
# labels:
# # another way of adding lebels
# - "traefik.enable=true"
# - "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
# - traefik.http.services.whoami.loadbalancer.server.port=8082
# - "traefik.http.routers.whoami.middlewares=authwhoami"
# - "traefik.http.routers.whoami.entrypoints=websecure"
# - "traefik.http.routers.whoami.tls.certresolver=leresolver"
# - "traefik.http.middlewares.authwhoami.basicauth.users=${DASHBOARD_USER}:${DASHBOARD_PASSWORD}" # user/pass
# # Use this to test
# whoami_too:
# image: containous/whoami:v1.3.0
# command:
# - --port=8082 # Our service listens on 8082
# networks:
# # Has to be in the same network as Traefik
# - net
# labels:
# # another way of adding lebels
# - "traefik.enable=true"
# - "traefik.http.routers.whoami_too.rule=Host(`whoami_too.docker.localhost`)"
# - traefik.http.services.whoami_too.loadbalancer.server.port=8082
# - "traefik.http.routers.whoami_too.middlewares=authwhoami_too"
# - "traefik.http.routers.whoami_too.entrypoints=websecure"
# - "traefik.http.routers.whoami_too.tls.certresolver=leresolver"
# - "traefik.http.middlewares.authwhoami_too.basicauth.users=${DASHBOARD_USER}:${DASHBOARD_PASSWORD}" # user/pass

networks:
net:
Expand Down

0 comments on commit a71a3e1

Please sign in to comment.