Docker enviroment for multiple php application development. It can run multiple php version at a time. It consists of the following:
- PHP 7.4 & PHP 8.5
- Apache
- MariaDB
- PostgreSQL
- Composer
Clone or download this repository and run
docker compose up├── docker-files # Dockerfiles for php
├── PHP74.Dockerfile # Dockerfile for php7.4
├── PHP85.Dockerfile # Dockerfile for php8.5
├── mariadb-data # MariaDB Server Data
├── pgsql-data # PostgeSQL Server Data
├── www # Docker volume for /var/www/html/
├── php74 # Docker volume for /var/www/html/ php7.4
├── php85 # Docker volume for /var/www/html/ php8.5
├── docker-compose.yaml # Docker compose file
After running docker compose up put your php application file into www/php{version}. php apache server will run on port 8074, 8082, 8085
| Container | Port |
|---|---|
PHP 7.4 |
8074 |
PHP 8.5 |
8085 |
MariaDB |
3300 |