Open
Description
How can I manage composer.json and composer.lock files that hosting under /opt/drupal that I can't use volume mount these files without creating exact one in host machine (or at least I don't know).
Logic: copy composer.(json|lock) from container /opt/drupal/composer.(json|lock) if not in the host machine.
After that volume binding will work.
drupal:
image: drupal:9.4
volumes:
- ../src/composer.json:/opt/drupal/composer.json
- ../src/composer.lock:/opt/drupal/composer.lock
WHY: To be able to easily organize files with git. Not only
- ../src/modules:/var/www/html/modules
- ../src/profiles:/var/www/html/profiles
- ../src/themes:/var/www/html/themes
- ../src/sites:/var/www/html/sites
are important. Also, composer files are needed.
Metadata
Metadata
Assignees
Labels
No labels