Skip to content

Instantly share code, notes, and snippets.

@ASKozienko
Created March 22, 2019 08:50
Show Gist options
  • Save ASKozienko/6b87cba7e5afcf77d7783a6c5e6dff3d to your computer and use it in GitHub Desktop.
Save ASKozienko/6b87cba7e5afcf77d7783a6c5e6dff3d to your computer and use it in GitHub Desktop.
Traefic for dev
version: '3.4'
services:
traefik:
image: traefik
command:
- "--docker"
- "--defaultentrypoints=http,https"
- "--entrypoints=Name:http Address::80"
- "--entrypoints=Name:https Address::443 TLS"
- "--entrypoints=Name:traefik Address::8080"
- " --api"
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.port=8080"
- "traefik.frontend.rule=Host:traefik.loc"
whoami:
image: containous/whoami
labels:
- "traefik.port=80"
- "traefik.frontend.rule=Host:whoami.loc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment