Skip to content

Best Way to Abstract Mount Points? #358

Answered by AbdBarho
davedavis asked this question in Q&A
Discussion options

You must be logged in to vote

You can always create docker-compose.override.yml and update the mounts in it.

services:
  auto:
    volumes:
      - /some/folder/you/want:/data
      - /some/other/folder:/output

This won't have any conflicts and it changes only rarely, works with updates, no need for custom dockerfiles, unless you need a really different setup of the folder hierarchy.

I hope this suffices for your use case.
If you could give me more info on what you need maybe I have some ideas /solutions.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AbdBarho
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants