Run FoundryVTT in a docker container with a proxy provided by nginx.
This will locally bind to 8443/tcp and 443/tcp (from the nginx service). Existing port forwarding instructions apply from maintainer documentation. Feel free to enable or disable ports as desired or remap as seen in docker-compose.yaml
Data will be stored locally in ./foundry-data
so that it persists between runs.
- Dependencies:
docker
,docker-compose
, and a valid FoundryVTT purchase
- Clone this respository.
$ git clone https://github.com/boyobejamin/FoundryVTT-Docker
$ cd FoundryVTT-Docker
- Download FoundryVTT and copy it to this folder
$ ls FoundryVTT*
FoundryVTT-9.269.zip
-
Update
./Dockerfile
with the currently downloaded verison of FoundryVTT number (IF DIFFERENT) -
Deploy.
$ docker-compose up -d --build
$ docker logs nginx
$ docker logs foundryvtt
Name | Description |
---|---|
SSL_CERT_BASE64 | PEM certificate provided as a base64 encoded string. Useful if you want to provide a signed certifiate, such as Let's Encrypt |
SSL_KEY_BASE64 | RSA Key provided as a base64 encoded string. Useful if you want to provide a signed certifiate, such as Let's Encrypt |
VTT_HOSTNAME | Override hostname, such as vtt.dndiscool.net |