diff --git a/build/docker-compose/docker-compose.code-server.yml b/build/docker-compose/docker-compose.code-server.yml index 28528900c..8718c5851 100644 --- a/build/docker-compose/docker-compose.code-server.yml +++ b/build/docker-compose/docker-compose.code-server.yml @@ -44,11 +44,7 @@ services: - CODE_SERVER_PASSWORD volumes: # Mount and serve contents of Drupal site. - - type: volume - source: drupal-root - target: /var/www/drupal - volume: - nocopy: true + - ../../codebase:/var/www/drupal:delegated # Mount and serve Drupal files. - type: volume source: drupal-sites-data @@ -79,7 +75,7 @@ services: - traefik.enable=false volumes: # Allow code-server to serve Drupal / override it. - - drupal-root:/var/www/drupal + - ../../codebase:/var/www/drupal:delegated deploy: resources: limits: @@ -87,6 +83,5 @@ services: reservations: memory: 2G volumes: - drupal-root: {} drupal-sites-data: {} code-server-data: {} diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 2cccd7e35..4d3a10050 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -139,3 +139,13 @@ A log of the error is needed for the fix to review. A full description of the is To fix this: * Run `make fix_views` + +## For Windows, error when executing make on trying to composer install within drupal container +**Error:** +```bash +docker-compose exec -T drupal with-contenv bash -lc 'composer install' +s6-envdir: fatal: unable to envdir: No such file or directory +``` +To fix this: + * edit the Makefile and replace the `docker-compose exec -T drupal with-contenv bash -lc 'composer install'` line with `docker-compose exec -T drupal composer install` + * rerun make \ No newline at end of file