-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
21 lines (20 loc) · 848 Bytes
/
compose.yml
File metadata and controls
21 lines (20 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
services:
whoami:
image: containous/whoami
labels:
# Enable Traefik auto discovery.
- "traefik.enable=true"
# Set the domain. You can customize the name of the router — `routers.whoami` — below.
- "traefik.http.routers.whoami.rule=Host(`whoami.local.crz.li`)"
# Enable TLS.
- "traefik.http.routers.whoami.tls=true"
# Traefik selects the first port that the service publishes, but if you need you can point to a different port with the line below.
# - "traefik.http.services.whoami.loadbalancer.server.port=80"
networks:
# The `default` network is automatically created by Docker Compose, but the container also needs to be connected to the Traefik network.
- default
- traefik
# Declare the Traefik network to be external.
networks:
traefik:
external: true