Docker Compose development environment for PHP.
- Apache 2
- PHP 8.3 via php-fpm
- PHP 8.4 via php-fpm
- Mysql 9
- Postgresql 17
- Mongodb + Express
- Memcached
- Redis
The environment mounts the ~/html directory in container's /var/www/html, also the .gitconfig file and .ssh directory from the user's home.
Inside the container are installed
- phpstan
- PHP CS Fixer
- Composer
- PhpUnit
- Infection
- phpDocumentor
All tools above are available from every location in filesystem. phpDocumentor is named php-doc.
git clone https://github.com/s3b4stian/dev-compose.gitBefore all need to build the environment
./build.shAnd finally start all
./up.shTo enter in development environment
./exec.shTo stop all containers
./down.sh