Here is an example of a WordPress project configured with Protocode:
https://github.com/protocode-tech/wordpress-template
It contains a .protocode
directory that holds all the configuration:
└── wordpress-template/
├── .protocode/
│ └── .env
│ └── docker-compose.yml
│ └── Dockerfile
│ └── lifecycle/
│ └── postUp.sh
│ ... Rest of the files
preUp.sh
file creates the necessary configuration files for WordPress and handles any permission issues.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
..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
.