feat: add project_root setting

Allow for overriding the project root from `/app` to something else,
such as `/var/www/html`.

The default is set within a new `build.defaults.yaml` file which the
project specific file is merged into.

Fixes #27
This commit is contained in:
Oliver Davies 2023-03-10 22:19:10 +00:00
parent eeeb70df14
commit 6b5c1b5aee
8 changed files with 19 additions and 10 deletions

View file

@ -2,7 +2,7 @@
x-app: &default-app
volumes:
- "${DOCKER_WEB_VOLUME:-./{{ drupal.docroot }}:/app/{{ drupal.docroot }}}"
- "${DOCKER_WEB_VOLUME:-./{{ drupal.docroot }}:{{ project_root }}/{{ drupal.docroot }}}"
env_file:
- .env
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"