Skip to content

Commit 4e25808

Browse files
authored
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
1 parent 6a34874 commit 4e25808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
STABILITY: ${STABILITY}
1010
volumes:
1111
# Comment out the next line in production
12-
- ./:/srv/app:rw
12+
- ./:/srv/app:rw,cached
1313
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
1414
- /srv/app/var/
1515
- /srv/app/var/cache/

0 commit comments

Comments
 (0)