Use local volumes for vendor and var directories to improve performance

This commit is contained in:
Björn Fromme
2020-03-09 17:58:55 +01:00
parent 8904d353ef
commit 545c37b2e6
2 changed files with 23 additions and 2 deletions
+4 -1
View File
@@ -20,7 +20,10 @@ provider: default
omit_containers: [dba]
use_dns_when_possible: true
timezone: Europe/Berlin
hooks:
post-start:
- exec: bash -c "sudo chown -R ${DDEV_UID}:${DDEV_GID} /var/www/html/vendor"
- exec: bash -c "sudo chown -R ${DDEV_UID}:${DDEV_GID} /var/www/html/var"
# This config.yaml was created with ddev version v1.13.1
# webimage: drud/ddev-webserver:v1.13.1
+19 -1
View File
@@ -3,4 +3,22 @@ version: '3.6'
services:
web:
environment:
- TYPO3_CONTEXT=Development/Ddev
- TYPO3_CONTEXT=Development/Ddev
- DDEV_UID
- DDEV_GID
volumes:
- type: volume
source: var
target: /var/www/html/var
volume:
nocopy: true
- type: volume
source: vendor
target: /var/www/html/vendor
volume:
nocopy: true
volumes:
vendor:
driver: local
var:
driver: local