-
-
Save wallopthecat/6d3e41f060e1dd184d62c58108e83b34 to your computer and use it in GitHub Desktop.
Setting up error page for traefik and it's applications
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
app: | |
image: my/webapp:latest | |
labels: | |
- "traefik.enable=true" | |
- "traefik.frontend.rule=Host:supercoolapp.com" | |
- "traefik.frontend.errors.network.backend=error" | |
- "traefik.frontend.errors.network.query=/{status}.html" | |
- "traefik.frontend.errors.network.status=500-511" | |
- "traefik.port=3000" | |
error_pages: | |
image: my/error-pages:latest | |
labels: | |
- "traefik.enable=true" | |
- "traefik.frontend.rule=HostRegexp:{catchall:.*}" | |
- "traefik.frontend.priority=1" | |
- "traefik.backend=error" | |
- "traefik.port=80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment