francescou / docker-compose-ui

web interface for Docker Compose
http://francescou.github.io/docker-compose-ui
MIT License
1.54k stars 228 forks source link

Mounting Multiple Volumes Overwrites #50

Closed centralafricabaptistcollege closed 8 years ago

centralafricabaptistcollege commented 8 years ago

I have two mounts - one for the code and one for config. They are both local folders inside the same directory as the docker-compose.yml

              - ./code:/var/www/html
              - ./code:/var/www/html/config.php

This works fine from the command line, but through docker-compose-ui, only the second one gets applied, even though the gui says both volumes are mounted.

francescou commented 8 years ago

Hi, relative paths can be a bit problematic, you could use these workarounds:

feel free to reopen if necessary

centralafricabaptistcollege commented 8 years ago

Thanks. The ${PWD} seems to work great.