php:5.6-fpm with xdebug and some libraries for development environment
350
DNXMP is a PHP-Development environment using Docker-compose.
This "Docker" environment is a NginX, MySQL, PHP-FPM based server with PhpMyAdmin and Maildev.
Docker Composition :
Default parameters:
Ports exposed:
DNXMP require docker and docker-compose.
First, run your docker terminal.
Then you will need to clone this repo :
$ git clone [email protected]:stayfi/dnxmp.git
$ cd dnxmp
You have to change the xdebug config "remote_host", in the file docker-compose.yml by your host IP address to have xdebug works:
16: XDEBUG_CONFIG: remote_host=YOUR_HOST_IP_ADDRESS
You have to add shared folders to your docker virtual machine, in Oracle VM Virtual Box :
shared vm name "dnxmp_root" -> To the "root" of this repo
shared vm name "dnxmp_www" -> To your "www" root

You have to add the "bootlocal.sh" file to your virtual machine in this folder "/var/lib/boot2docker/" :
$ docker-machine ssh default
* "(assuming 'default' is your docker virtual machine name)"
$ sudo vi /var/lib/boot2docker/bootlocal.sh
* "paste those lines into this new file:"
mkdir -p /home/docker/dnxmp/root
mount -t vboxsf dnxmp /home/docker/dnxmp/root
mkdir -p /home/docker/dnxmp/www
mount -t vboxsf dnxmp_www /home/docker/dnxmp/www
$ sudo chmod +x /var/lib/boot2docker/bootlocal.sh
Restart your docker machine (assuming "default" is your docker virtual machine name):
$ docker-machine restart default
If you update dockerfile, do a new build :
$ docker-compose build
This will compose the containers.
You can change the MySQL root password in the file docker-compose.yml :
32: MYSQL_ROOT_PASSWORD=dnxmp
You can work with php:5.6-fpm, juste change in in the file docker-compose.yml :
13: image: stayfi/php56-fpm-dev
Run dnxmp by :
$ docker-machine up
At the first run, it will pull images needed if it's not yet done, and generate the MySQL database.
Assuming your default docker IP address is 192.168.99.11, you can acces to :
To start working on your project.
Web access to MySQL with the default credentials :
To check the mails sended by your PHP application, all mails are catched by Maildev.
If you want to use another client for MySQL.
Stayfi B. - [email protected]
(Major.Minor[.Fix])
Fix alpine php build (add autoconf, make)
Add alpine php images
Add link to image pre builded : stayfi/php70-fpm-dev
Add php7.0-fpm
Fix tutorial in README.md
Add link to image pre builded : stayfi/php56-fpm-dev
First version, working.
MIT license
Content type
Image
Digest
Size
204.3 MB
Last updated
over 10 years ago
docker pull stayfi/php56-fpm-dev