This repository provides a simple Dockerfile to run Foundry VTT with Docker.
- A Foundry VTT distribution (
foundryvtt-x.y.z.zipunpacked into afoundryvttdirectory) - Docker
Put the Dockerfile in the foundryvtt directory. Build the image by running within the foundryvtt directory:
docker build -t foundryvtt .To create a container run the following command:
docker run --name fvtt \
-p <port on host>:30000 \
-v <data directory on host>:/home/foundry/data \
-d foundryvttIf new version of Foundry VTT was released and you'd like to update, make sure to stop and remove the existing container:
docker stop fvtt
docker rm fvttAfterwards, repeat the build and creation steps above.
Copy the Dockerfile into your already downloaded (and unzipped) foundryvtt directory.
Then create a docker-compose.yaml file within the directory as follows (take care of the placeholders):
version: '3.7'
services:
fvtt:
build:
context: ./
dockerfile: ./Dockerfile
image: foundryvtt
ports:
- '<port on host>:30000'
volumes:
- '<data directory on host>:/home/foundry/data'
restart: alwaysdocker-compose buildPull requests are very welcome. For major changes, please open an issue first to discuss what you would like to change.