-
Hi, However, with symlink, I get an issue when it tries to Any ideas on how I could get this setup working? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm glad the container is working well for you. I have an idea that I think will work. So, I'm pretty sure Docker will be unhappy trying to resolve a symlink across volumes. In the second container try mounting the It's a little confusing with all the things named "data". Host: └── parent
├── data
| └── Data
└── data1 Container 1: └── /data (host data)
└── Data Container 2: └── /data (host data1)
└── Data (host data/Data) ---
version: "3.8"
secrets:
credentials:
file: credentials-mine.json
services:
foundry0:
image: felddy/foundryvtt:release
hostname: felddy_foundryvtt
init: true
restart: "no"
volumes:
- type: bind
source: ./data
target: /data
environment:
- CONTAINER_CACHE=/data/container_cache
- CONTAINER_VERBOSE=true
- TIMEZONE=US/Eastern
- FOUNDRY_UID=501
- FOUNDRY_GID=20
- FOUNDRY_MINIFY_STATIC_FILES=true
- FOUNDRY_UPNP=false
secrets:
- source: credentials
target: config.json
ports:
- target: "30000"
published: "30000"
protocol: tcp
foundry1:
image: felddy/foundryvtt:release
hostname: felddy_foundryvtt_1
init: true
restart: "no"
volumes:
- type: bind
source: ./data1
target: /data
- type: bind
source: ./data/Data
target: /data/Data
- type: bind
source: ./data/container_cache
target: /data/container_cache
environment:
- CONTAINER_CACHE=/data/container_cache
- CONTAINER_VERBOSE=true
- TIMEZONE=US/Eastern
- FOUNDRY_UID=501
- FOUNDRY_GID=20
- FOUNDRY_MINIFY_STATIC_FILES=true
- FOUNDRY_UPNP=false
secrets:
- source: credentials
target: config.json
ports:
- target: "30000"
published: "30001"
protocol: tcp Couple of things to be careful with:
Let me know if this works for you. |
Beta Was this translation helpful? Give feedback.
-
Old discussion here, but the above solution does not work for me mounting separate root folders but sharing
I was hoping to run two separate worlds, but share the modules so I only have to update things once. I have a couple of content modules that take up a large amount of disk space. If anyone has this working with v12 Foundry I'd love to see your Docker Compose |
Beta Was this translation helpful? Give feedback.
I'm glad the container is working well for you. I have an idea that I think will work.
So, I'm pretty sure Docker will be unhappy trying to resolve a symlink across volumes.
In the second container try mounting the
Data
directory (from the first) on top of thedata
mount of second. I just tried this and it seems to work well. (see below).It's a little confusing with all the things named "data".
Host:
Container 1:
Container 2: