[HELP] Stacks location and volume mapping #35
-
Okay, maybe I'm being dense, but I don't understand what you are trying to say here:
Where exactly do I put the volume pathing on my host server? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
It is not easy to explain. I find that some people are also confused, I don't know how to make it clear. I show you more examples here, hope you find the pattern. CORRECT Examples:
INCORRECT Examples:
Container's Path === Host's Path === MUST It is a relative path issue of docker-compose which tries to do This stackoverall post explains more in details: |
Beta Was this translation helpful? Give feedback.
-
Also you can use In your case, the config path should start with |
Beta Was this translation helpful? Give feedback.
-
the closest match i use to yours louis was
i use jailmaker to bind the docker jail in the docker config for jailmaker e.g. on truenas so in docker config for jailmaker its bound as
then in compose you use others directories for my docker layout
full pathing for so dockge i did /docker/stacks/ this is where dockge puts the docker-compose yamls and .env files
this setup works for me on a truenas using jailmaker to create docker. if not mistaken, i think what louis meant, was either that
wasn't sure which between these 2 he meant but i used the first example and copied both sides the same and just worked. the pathing was already short to begin with for me, because i had shortened it by binding mount to jailmaker. for jailmaker for use in docker compose pathing we use the jailmaker binds, not your original full pathing for the truenas datasets. hope this helps. |
Beta Was this translation helpful? Give feedback.
It is not easy to explain. I find that some people are also confused, I don't know how to make it clear.
I show you more examples here, hope you find the pattern.
CORRECT Examples:
INCORRECT Examples:
Container's Path === Host's Path === MUST
It is a relative path issue of docker-compose which tries to do
docker-compose up
in the container but the docker server is actually in the host.This stackoverall post explains more in details:
https://stackoverflow.com/questions/6380…