Issue with PHP container start
Machine: MacBook Air, M1 16GB
Problem faced and Solution during setup.
Problem: After completion of l3d
once you executer a d4d up
, all containers started successfully apart from apache-1
and php-1
. It give an error that /drupal is not shared
Screenshot_2023-02-02_at_09.04.27. Once we try to start them manually through UI then apache-1
starts successfully but php-1
give a mount error for /host_mnt/drupal
.
Changes done to overcome the problem!: To overcome above problem edit ROOT_FOLDER/docker-compose.yml
and perform following changes:
php:
image: 'wodby/drupal-php:$PHP_VERSION'
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
#DB_HOST: mariadb
#DB_USER: drupal
#DB_PASSWORD: drupal
#DB_NAME: drupal
#DB_DRIVER: mysql
#COMPOSER_ALLOW_SUPERUSER: 1
#SSH_AUTH_SOCK: /ssh-agent
volumes:
#- /etc/timezone:/etc/timezone:ro
#- /etc/localtime:/etc/localtime:ro
- /Users/USER_NAME/Sites/docker_l3d:/var/www/html
- /Users/USER_NAME/Sites/docker_l3d/drush:/etc/drush
#- /drupal:/ssh-agent