Created
August 21, 2019 00:53
-
-
Save anlek/522894d093431303e79e20992ef2114f 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