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:
parent
6a348748e7
commit
4e258087dc
@ -9,7 +9,7 @@ services:
|
|||||||
STABILITY: ${STABILITY}
|
STABILITY: ${STABILITY}
|
||||||
volumes:
|
volumes:
|
||||||
# Comment out the next line in production
|
# 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
|
# 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/
|
||||||
- /srv/app/var/cache/
|
- /srv/app/var/cache/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user