Skip to content

Instantly share code, notes, and snippets.

@bertiebaggio
Created April 10, 2020 10:44
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 bertiebaggio/b4d40ad3f63d1a23ea4819597ac59ec8 to your computer and use it in GitHub Desktop.
Save bertiebaggio/b4d40ad3f63d1a23ea4819597ac59ec8 to your computer and use it in GitHub Desktop.
Traefik v2 labels example for FoundryVTT in Docker
# Traefik (https://docs.traefik.io/) v2 labels for Foundry VTT in Docker (https://github.com/bertiebaggio/foundryvtt-docker)
# add these to the foundryvtt serice and customise as desired
# Notes: - Be sure to set the Host currectly below
# - Remove '&& PathPrefix(`/foundry`)' if NOT serving from a subdirectory/path
# - If you keep the PathPrefix, you will need to edit Foundry's options.json and set eg "routePrefix": "foundry"
labels:
- "traefik.enable=true"
- "traefik.http.routers.foundryvtt.rule=Host(`rpg.example.com`) && PathPrefix(`/foundry`)"
- "traefik.http.services.foundryvtt.loadbalancer.server.port=30000"
- "traefik.http.routers.foundryvtt.tls=true"
- "traefik.http.routers.foundryvtt.tls.certresolver=myresolver"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment