Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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