-
Hi! I'm experimenting to give my Foundry installation access to an external folder (also hosted on my Synology) so that I shouldn't copy all data to my docker folder like I do now. My current folder structure looks like this: I tried to make a symlink (ln -s) to: version: "3.8"
services:
foundry:
image: felddy/foundryvtt:9.269
hostname: ...
init: true
restart: "unless-stopped"
volumes:
- type: bind
source: ./data
target: /data
environment:
- CONTAINER_CACHE=/data/container_cache
- FOUNDRY_PASSWORD=...
- FOUNDRY_USERNAME=...
- FOUNDRY_ADMIN_KEY=...
- CONTAINER_PRESERVE_CONFIG=true
- CONTAINER_VERBOSE=false
- CONTAINER_PRESERVE_OWNER=/data/Data/Resources/TTRPG
ports:
- target: "30000"
published: "..."
protocol: tcp
mode: host When I add this extra volume to bind my main assets folder to the TTRPG folder, it becomes visible in Foundry's file explorer, but I can't see the content due to a permission error. I get it both with or without making the manual symlink in Terminal. - type: bind
source: /volume1/Books/E-Books/Hobby/Tabletop RPG's
target: /data/Data/Resources/TTRPG
read_only: true I've searched around and found discussions like 153 that point to people having solved this vexing conundrum. Maybe someone has a tip on how to solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would suggest using the See: |
Beta Was this translation helpful? Give feedback.
-
You're a magic man! |
Beta Was this translation helpful? Give feedback.
I would suggest using the
FOUNDRY_UID
andFOUNDRY_GID
environment variables to move the server into the correct user or group needed to access your bound volumes. Take a look at the answer to the discussion below for more information.See: