Created
January 27, 2022 12:10
-
-
Save DeepSnowNeeL/7e5d7a7c042d26e239d1df006090d86c to your computer and use it in GitHub Desktop.
Foundry VTT dockerized + traefik
This file contains 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
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 |
This file contains 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
# 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