Skip to content

Instantly share code, notes, and snippets.

@tumf
Created January 15, 2021 12:15
Show Gist options
  • Save tumf/f2410c4c15a1b07c87b2c2445ad7c167 to your computer and use it in GitHub Desktop.
Save tumf/f2410c4c15a1b07c87b2c2445ad7c167 to your computer and use it in GitHub Desktop.
version: '3'
networks:
default:
external:
name: front
services:
whoami:
image: containous/whoami
labels:
- "traefik.http.routers.whoami_example.rule=Host(`whoami.example.com`)"
- "traefik.http.routers.whoami_example.tls=true"
- "traefik.http.routers.whoami_example.tls.certresolver=dnsresolver"
- "traefik.http.routers.whoami_example.tls.domains[0].main=whoami.example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment