How to correctly mount my file/system or application files using docker compose?

Ah right. I haven’t seen your Dockerfile - I was looking at your compose file. In particular this:

volumes:
  - ./:/var/www/html:cached # User-guided caching

There’s a few of these, and if you don’t need the volumes, I wonder if you need to take them out. I wonder if this would effectively overwrite the files in the container with an (apparently empty) folder that has failed to mount.

1 Like