Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.92 KB

File metadata and controls

57 lines (40 loc) · 1.92 KB

Docker based PHP development environment

The PHP development environment includes the following services:

Service Container Port Description Enabled
beanstalkd phpdev-beanstalkd 11300 Beanstalkd
mailpit phpdev-mailpit 8025, 10250 SMTP, Mailpit
mariadb phpdev-mariadb 3306 MariaDB
mongo phpdev-mongodb 27017 MongoDB
mongo-express phpdev-mongo-express 8081 Mongo Express
mysql phpdev-mysql 3307 MySQL
nginx phpdev-nginx 8000 Nginx
php-fpm phpdev - PHP-FPM
postgres phpdev-postgres 5432 PostgreSQL
redis phpdev-redis 6379 Redis
redis-insight phpdev-redis-insight 13333 Redis 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