Created
June 9, 2022 20:16
-
-
Save xholicka/7e1f5fa8a0a8882df84989156a9ba86d to your computer and use it in GitHub Desktop.
FoundryVTT in Docker on RaspberryPi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -m 1777 ~/share | |
sudo apt install samba samba-common-bin | |
sudo vim /etc/samba/smb.conf | |
[share] | |
Comment = pi shared folder | |
Path = /home/pi/share | |
Browseable = yes | |
Writeable = yes | |
only guest = no | |
create mask = 0777 | |
directory mask = 0777 | |
Public = yes | |
sudo smbpasswd -a pi | |
sudo service smbd restart | |
mkdir ~/share/foundrydata | |
mkdir ~/docker | |
vim ~/docker/docker-compose.yml | |
version: '3.9' | |
services: | |
foundry: | |
image: felddy/foundryvtt:release | |
hostname: my_foundry_host # change | |
network_mode: host # i found it faster, but cant specify ports now (will solve with nginx as reverseproxy) | |
init: true | |
restart: "unless-stopped" | |
volumes: | |
- type: bind | |
source: <your_data_dir> # change | |
target: /data | |
environment: | |
- FOUNDRY_PASSWORD= # change | |
- FOUNDRY_USERNAME= # change | |
- FOUNDRY_ADMIN_KEY= # change | |
docker compose up -d | |
sudo ufw allow 30000 | |
sudo ufw allow samba | |
sudo ufw reload | |
10.0.0.101:30000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment