Performance tuning for app volume

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
This commit is contained in:
Caule Simon 2018-06-30 12:20:46 +02:00 committed by GitHub
parent 6a348748e7
commit 4e258087dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/