-
-
Save ideaengine007/7ed5c2123df34fa27ed0b75a501284ec to your computer and use it in GitHub Desktop.
Docker Compose YAML for observing Traefik as a reverse proxy allowing access with a custom host header
This file contains 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
services: | |
reverse-proxy: | |
image: traefik:v2.10 | |
command: --providers.docker --entrypoints.web.address=:80 | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
nginx: | |
image: nginx:latest | |
labels: | |
- "traefik.http.routers.nginx.entrypoints=web" | |
- "traefik.http.routers.nginx.rule=Host(`nswashere.local`)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment