Here is an example of a Symfony project configured with Protocode:
https://github.com/protocode-tech/symfony-template
It contains a .protocode
directory that holds all the configuration:
└── symfony-template/
├── .protocode/
│ └── docker-compose.yml
│ └── lifecycle/
│ └── preUp.sh
│ └── postUp.sh
│ ... Rest of the files
preUp.sh
file creates the environment files expected by Symfony 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
into the form field. Then, in the "Initialization" section, under "Before container build", paste the content of .protocode/lifecycle/preUp.sh
, and under "After container build", paste the content of .protocode/lifecycle/postUp.sh
.