RetroFed Forum
Your home away from modern life.
Best (correct) way to use local mapped volumes with Portainer Stacks
Post Reply
AuthorMessage
Override4414 lemmy.world Override4414@lemmy.world
Joined: 2025-05-08
Quote

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

1   Original
Post Reply
Back to top