Created
March 22, 2019 08:50
-
-
Save ASKozienko/6b87cba7e5afcf77d7783a6c5e6dff3d to your computer and use it in GitHub Desktop.
Traefic for dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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