~travisshears/foundry-vtt

Foundry VTT hosted on Fly.io setup via Docker
36f8f23d — Travis Shears 1 year, 4 months ago
mention the clone step
b81049aa — Travis Shears 1 year, 4 months ago
Merge branch 'docs-fix'
25032a48 — Travis Shears 1 year, 4 months ago
try raw html

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~travisshears/foundry-vtt
read/write
git@git.sr.ht:~travisshears/foundry-vtt

You can also use your local clone with git send-email.

#Foundry VTT Fly.io Setup

This project is about getting a Foundry VTT instance running on fly.io servers. Using the docker deployment method it only takes a few minutes to get a instance up and running in the location of your choice.

#Steps

  1. Make sure you have flyctl installed and logged in on local, https://fly.io/docs/hands-on/install-flyctl/.
  2. Clone this repo.
  3. Download the linux node.js zip from the purchase page on Foundry, example: `FoundryVTT-10.291.zip`.
  4. Extract that zip to a folder called `foundryvtt` in the root of the project.
  5. Created the needed volume so all your game data survives server restarts.

    $ fly volumes create foundry_vtt_data_v2 --region lhr --size 20
  6. Now you are ready to deploy!

    $ flyctl launch
  7. Scale up the ram so the service runs smoothly.

    $ flyctl scale memory 1024
  8. Check the fly.io dashboard for the public url and you are ready to use Foundry.

#Scaling down the service when not in use

One of the great parts about this setup is you can simply turn the server off when you don't need it.

To shutdown:

$ flyctl scale count 0

To start back up:

$ flyctl scale count 1

#Credits

This project is heavily inspired by the docker setups found on the foundryvtt wiki here. I simply updated the node image, changes a few things in the Dockerfile, and added a fly.io config.