Yes I have installed drupal 9.50 using docker. But it is extremely slow taking more than a minute to load any page. Please suggest how can we improve its speed.
used this docker file:version: '3'
services:
mysql:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root
drupal:
image: drupal:9.5.0
ports:
- 8081:80
volumes:
- ./web:/var/www/html
- ./vendor:/opt/drupal/vendor
- ./composer.json:/opt/drupal/composer.json
- ./composer.lock:/opt/drupal/composer.lock
links:
- mysql
environment:
- MYSQL_USERNAME=root
- MYSQL_PASSWORD=rootIt’s almost certainly those bind mounts. Depending on the host operating system, bind mounts with lots of files—which Drupal has—can be excruciatingly slow.