Docker-compose with two volumes create one empty folder

Hello there! In my docker-compose file i have many images and i want make two host folder named db and public with css and js files.
in first image with db:

    - './db/:/usr/local/var/lib/db'

Its ok! Create folder with name db with all files inside from image!

But second image dont do that. I do:

    - './public/:/app/public'

Folder creates but all files dont input on host and delete all files in image.

I use version: β€œ2”. What iam doing wrong?
15 1

On pic you may see my filesystem after i docker-compose up! If i don’t mount public on host in image i can see files from container. Then i mount volume from host i see only empty directory on host and in image
Please help me :frowning:

1 Like