🎮 Setup Foundry VTT — Self-Hosted Virtual Tabletop
Deploy Foundry Virtual Tabletop on Ubuntu with Docker — run your own tabletop RPG sessions with maps, dynamic lighting, and tokens, on port 30000. Requires a purchased Foundry VTT license.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/gaming/foundryvtt/foundryvtt-ubuntu.sh
chmod +x foundryvtt-ubuntu.sh
sudo bash foundryvtt-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/gaming/foundryvtt/foundryvtt-ubuntu.sh
2 Make it Executable
chmod +x foundryvtt-ubuntu.sh
3 Run the Installer
The script installs Docker if needed and starts Foundry VTT on port 30000. You must provide your foundryvtt.com account credentials via the environment so the container can download your licensed copy; without a purchased license it cannot run.
sudo bash foundryvtt-ubuntu.sh
4 Open the Web UI and Activate Your License
Open Foundry in your browser and activate it with your license key on first visit, then set an admin password and create your first world:
http://<your-server-ip>:30000
Ports Used
| Port | Purpose |
|---|---|
| 30000 | Web UI — players connect here, so it must be reachable |
| ⚠️ Paid license | Requires a purchased Foundry VTT license from foundryvtt.com |
| FOUNDRY_USERNAME / PASSWORD | Your foundryvtt.com account, used to download your copy |
| ./data | Worlds, modules, and assets — back this up |