Here is an example of a Drupal project configured with Protocode:
https://github.com/protocode-tech/drupal-template
It contains a .protocode directory that holds all the configuration:
└── drupal-template/
├── .protocode/
│ └── docker-compose.yml
│ └── lifecycle/
│ └── preUp.sh
│ └── postUp.sh
│ ... Rest of the files
preUp.sh file creates the configuration files expected by Laravel and installs the official Intelephense extension for VSCode, and the postUp.sh file installs the dependencies with Composer.In a similar project, you can either:
.protocode/docker-compose.yml. Then, in the "Initialization" section, under "Before container build", place .protocode/lifecycle/preUp.sh, and under "After container build", place .protocode/lifecycle/postUp.sh..protocode/docker-compose.yml in the form field. Then, in the "Initialization" section, under "Before container build", paste the contents of .protocode/lifecycle/preUp.sh, and under "After container build", paste the contents of .protocode/lifecycle/postUp.sh.