Docker version of Foundry VTT
Courtesy of: https://benprice.dev/posts/fvtt-docker-tutorial/
Note
This repo is no longer being updated, as I've moved this to my personal home setup, found here.
- Clone the repo
- Create and edit permissions to
acme.json
cd traefik
touch acme.json
chmod 600 acme.json
-
Edit
traefik/traefik.yml
with the correct email. -
Generating hashed password for Traefik: https://medium.com/@techupbusiness/add-basic-authentication-in-docker-compose-files-with-traefik-34c781234970
echo $(htpasswd -nbB <USER> "<PASS>") | sed -e s/\\$/\\$\\$/g
- Create and fill in
.env
file with:
MONITOR_DOMAIN=<traefik domain>
MANAGE_DOMAIN=<portainer domain>
PLAY_DOMAIN=<foundry domain>
ADMIN_PASSWORD=<password from step 3 with duplicate $ removed>
FOUNDRY_USERNAME=<foundryvtt.com username>
FOUNDRY_PASSWORD=<foundryvtt.com password>
FOUNDRY_ADMIN_KEY=<foundry admin key>
Note: You must wrap the domains with `
- Run generate_compose
python3 generate_compose --env <path_to_env_file>
- Run it!
docker-compose up -d
- Create an IAM user on AWS S3 and grant it sufficient permissions to the correct bucket
- Create
s3.json
with :
{
"accessKeyId": <AWS IAM Access ID>,
"secretAccessKey": <AWS IAM Secret Access Key>,
"region": <AWS Bucket Region Codename>
}
- Place this file at
~/Foundry/data/Config
- Edit
~/Foundry/data/Config/options.json
and changeproxySSL: false
toproxySSL: true
Create a crontab job and paste in the following:
0 2 * * 4 sudo tar -cf /home/<user>/foundry/backups/foundry_`date +\%F`.tar /home/<user>/foundry/data
Note: The above cron job creates an archive every Thursday at 2am.