Skip Navigation

Best (correct) way to use local mapped volumes with Portainer Stacks

Hi all, In my current setup, I run many different containers each with its own compose folder. My main use case is mapping data volumes to a subfolder of where the compose file is located (as in './mydata:/root/app/data') instead of using the default docker volume folder.

What's the correct way of doing this in a portainer stack? I'd like to avoid using an absolute path (either direct or in a variable) for each container if possible...

TIA

0 comments

No comments