Forked from davebenvenuti/foundry-cloudflared- a simple FoundryVTT + Cloudflare Tunnel setup.
You should have docker compose installed either through docker desktop or docker engine.
You should have a cloudflare account (free) and you should create a tunnel (also free at the time of writing this).
When creating the tunnel, you can use foundry:30000
for the hostname. This will work for any foundry instances set up with this docker compose file, including multiple running on the same machine.
Be sure to keep your tunnel token handy from setting up a cloudflare tunnel.
create ./env.d/cloudflared
and ./env.d/foundry
and populate them with
TUNNEL_TOKEN=
where
TUNNEL_TOKEN - the token for your cloudflare tunnel
FOUNDRY_PASSWORD=
FOUNDRY_USERNAME=
FOUNDRY_ADMIN_KEY=
CONTAINER_PRESERVE_CONFIG=true
where
- FOUNDRY_PASSWORD - your password for https://foundryvtt.com/.
- FOUNDRY_USERNAME - your username for https://foundryvtt.com/
- FOUNDRY_ADMIN_KEY - set your admin password here
Creat a file .env
at the root of the project (same directory as docker-compse.yml
).
VERSION=
- VERSION - foundry version number, i.e. something like 11.307