How mount subdirectory in mounted directory in Docker?
I’m using this docker-compose file:
version: '2' services: php: container_name: "php" build: ./php volumes: - ./../php:/var/www - ./../core:/var/www/core
./../php – does not have core dir. After starting everything is ok. But after 5 seconds
/var/www/core is empty and I see empty core directory inside
I think container reload this empty directory(
./../php/core) from host and ignores second volume binding(
How use correctly?