Skip to content

Repository files navigation

Docker based PHP development environment

The PHP development environment includes the following services:

ServiceContainerPortDescriptionEnabled
beanstalkdphpdev-beanstalkd11300Beanstalkd
mailpitphpdev-mailpit8025, 10250SMTP, Mailpit
mariadbphpdev-mariadb3306MariaDB
mongophpdev-mongodb27017MongoDB
mongo-expressphpdev-mongo-express8081Mongo Express
mysqlphpdev-mysql3307MySQL
nginxphpdev-nginx8000Nginx
php-fpmphpdev-PHP-FPM
postgresphpdev-postgres5432PostgreSQL
redisphpdev-redis6379Redis
redis-insightphpdev-redis-insight13333Redis Insight

Setup

Run the following script to create the required directories:

python setup.py

Use the --htdocs-source argument if you want to symlink htdocs to an existing directory.

Build the Docker images using the following command:

docker-compose build

Starting

Starting the environment is done using the following command:

docker-compose up -d

If you don't want to start all enabled services then you can pass a list of the ones you want to use:

docker-compose up -d php

Stopping

Stopping the environment is done using the following command:

docker-compose down

About

A Docker based PHP development environment

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages