From 4e258087dc131307e84f95a5020db553259eb063 Mon Sep 17 00:00:00 2001 From: Caule Simon Date: Sat, 30 Jun 2018 12:20:46 +0200 Subject: [PATCH] Performance tuning for app volume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use cached strategy on volume ( the host’s view is authoritative (permit delays before updates on the host appear in the container) to optimize container performance. Docker documentation on this : https://docs.docker.com/docker-for-mac/osxfs-caching/#tuning-with-consistent-cached-and-delegated-configurations --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index ef221ab..7899f49 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,7 +9,7 @@ services: STABILITY: ${STABILITY} volumes: # Comment out the next line in production - - ./:/srv/app:rw + - ./:/srv/app:rw,cached # If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host - /srv/app/var/ - /srv/app/var/cache/