I'm trying to map one single file which is exist in the container with an edited copy which exist in my host by using docker-compose file. But it's not working. could someone please help me to fix this?
I'm not getting any error. But when i do a change on the file in host, its not reflecting inside the container.
Both files in host and docker container have 777 permission.
I've figured out what the issue is. when mounting a single file and editing it, use the nano editor to edit the files or turn off swapfiles before using vim. when using vim, its creating a swapfile and replacing the existing one. therefore the file bind link is breaking. thats why the changes are not reflecting both sides.