Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.71 KB

README.md

File metadata and controls

70 lines (53 loc) · 1.71 KB

Simple Dockerfile for Foundry VTT

This repository provides a simple Dockerfile to run Foundry VTT with Docker.

Requirements

  • A Foundry VTT distribution (foundryvtt-x.y.z.zip unpacked into a foundryvtt directory)
  • Docker

Usage

Manual

Build the Image

Put the Dockerfile in the foundryvtt directory. Build the image by running within the foundryvtt directory:

docker build -t foundryvtt .

Create a container

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 foundryvtt

Update Container

If 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 fvtt

Afterwards, repeat the build and creation steps above.

With docker-compose

Setup of Context Directory

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: always

Create Image and Run Container

docker-compose build

Contributing

Pull requests are very welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT