ToThere's no need to delete anything. To address the container andOP's question: You need to rebuild it dothe image then use up to replace the container with the newly configured imaged.
IMPORTANT: notice that the new image will automatically be tagged with latest.
Step 1: Edit Docker file
Step 2: docker-compose containerbuild
Step rm3: CONTAINERdocker-compose up
theThe docker-compose rm option stoppedup will leave all the container but did not delete it so I couldn't delete itsunchanged containers alone and replace only the containers that have a newly created image to rebuild.