Created
January 17, 2018 23:22
-
-
Save djmaze/72f0565715c59712ce191b41d3c377da to your computer and use it in GitHub Desktop.
Traefik loadbalancer for a local dev environment (via Docker Compose)
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.3" | |
services: | |
traefik: | |
image: traefik:1.4 | |
command: | |
- --docker | |
- --docker.watch | |
- --docker.exposedbydefault=false | |
- --web | |
- --entryPoints=Name:http Address::80 | |
- --defaultEntrypoints=http | |
- --debug | |
ports: | |
- 80:80/tcp | |
networks: | |
- traefik | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
networks: | |
traefik: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment