Skip to content

Instantly share code, notes, and snippets.

@DeepSnowNeeL
Created January 27, 2022 12:10
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 DeepSnowNeeL/7e5d7a7c042d26e239d1df006090d86c to your computer and use it in GitHub Desktop.
Save DeepSnowNeeL/7e5d7a7c042d26e239d1df006090d86c to your computer and use it in GitHub Desktop.
Foundry VTT dockerized + traefik
version: '3'
# to build
# docker-compose build --build-arg FOUNDRY_URL="your url" foundryvtt
# then run
# docker-compose up -d
services:
foundryvtt:
container_name: foundryvtt
build: .
volumes:
- /home/volumes/foundrydata:/home/foundrydata
restart: always
networks:
- web #considering your traefik is on this network
labels:
traefik.enable: true
traefik.http.routers.foundryvtt.rule: "Host(`foundryvtt.example.com`)"
traefik.http.routers.foundryvtt.entrypoints: https
traefik.http.routers.foundryvtt.tls: true
traefik.http.routers.foundryvtt.tls.certresolver: letsencrypt
traefik.http.services.foundryvtt.loadbalancer.server.port: 30000
networks:
web:
external: true
# docker build -t testfoundry --build-arg FOUNDRY_URL="your url" .
FROM node:latest
ARG FOUNDRY_URL
WORKDIR /home
RUN mkdir foundryvtt && mkdir foundrydata && cd foundryvtt && wget -q -O foundryvtt.zip "$FOUNDRY_URL" && unzip -q foundryvtt.zip && rm foundryvtt.zip
EXPOSE 30000
ENTRYPOINT node foundryvtt/resources/app/main.js --dataPath=/home/foundrydata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment