Last active
October 19, 2018 07:41
-
-
Save hit0ri/1db7ea060c79eda90adefbcc2d82a18e to your computer and use it in GitHub Desktop.
traefik path ip whitelist
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' | |
services: | |
proxy: | |
image: traefik | |
command: | |
- --docker | |
- --api | |
ports: | |
- '80:80' | |
- '8080:8080' | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
web: | |
image: containous/whoami | |
labels: | |
- traefik.basic.frontend.rule=Host:web.127.0.0.1.nip.io | |
- traefik.admin.frontend.rule=Host:web.127.0.0.1.nip.io;PathPrefix:/admin | |
- traefik.admin.frontend.whiteList.sourceRange=172.18.0.2/32,172.18.0.1/32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment