-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathwhoami.yml
26 lines (24 loc) · 812 Bytes
/
whoami.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: '3'
services:
whoami:
image: containous/whoami
container_name: whoami
security_opt:
- no-new-privileges:true
labels:
# Enable this container to be mapped by traefik
# For more information, see: https://docs.traefik.io/providers/docker/#exposedbydefault
- "traefik.enable=true"
# Define the network that should be used
- "traefik.docker.network=proxy"
# URL to reach this container
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
# Activation of TLS
- "traefik.http.routers.whoami.tls=true"
# If port is different than 80, use the following service:
# - "traefik.http.services.<service_name>.loadbalancer.server.port=<port>"
networks:
- proxy
networks:
proxy:
external: true