Skip to content
Exercise · Data: volumes and bind mounts · lesson 7 of 7

Exercise: serve a site from a folder

The site's pages live on the server in the folder /srv/site, and people edit them right there. The nginx container must serve the new version at once, with no image rebuild. It has no reason to write to that folder, though: a fault in the container must not damage the files on disk.