Modular PHP development and production environment. Designed for multi-application workflows.
971
This project is as a starter kit to work in PHP application environment in Apache, created to allow multiple application to run in a single container.
If you wish to manage your own codebase and associated configuration independently and use this environment as a service layer, this is the option for you.
Minimal folder structure required:
pdpe/
├── .env
├── docker-compose.yml
├── htdocs/
│ └── your-example-app/
│ └── public/
└── apache/
└── sites-available/
└── your-example-apache.conf
Compose file example:
services:
web:
image: jmeiracorbal/pdpe:latest
ports:
- "${APACHE_PORT_RANGE}:${APACHE_PORT_RANGE}"
volumes:
- ./htdocs:/var/www/html
- ./apache/sites-available:/etc/apache2/sites-available
If you want to enable debug environment:
environment:
- XDEBUG_MODE=develop,debug
- XDEBUG_CLIENT_HOST=host.docker.internal
You can adjust these paths in the volume mappings, but these are the expected defaults in the official image.
Requirements:
Note: On the development mode, you must be sure that your htdocs contains a valid application structure aligned with host file for apache server conf before building the production image.
If you want to check the full documentation, examples, and usage guide, visit the GitHub repository.
Content type
Image
Digest
sha256:ad2a5392f…
Size
232.6 MB
Last updated
over 1 year ago
docker pull jmeiracorbal/pdpe