Skip to content

mikysan/simple-fvtt-dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Simple fvtt dockerfile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •