Skip to content

Instantly share code, notes, and snippets.

@hit0ri
Last active October 19, 2018 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hit0ri/1db7ea060c79eda90adefbcc2d82a18e to your computer and use it in GitHub Desktop.
Save hit0ri/1db7ea060c79eda90adefbcc2d82a18e to your computer and use it in GitHub Desktop.
traefik path ip whitelist
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