Public Repository

Last pushed: 2 years ago
Short Description
PHP development container
Full Description

PHP development container

Including

  • Apache
  • MySql
  • PHP 5.5, 5.4, 5.3 and 5.2 including ioncube and zend guard loader / zend optimizer
  • PhpMyAdmin
  • phpbrew
  • Node.js
  • Sass
  • Bower
  • Grunt
  • Gulp

Build

docker build -t <yourname>/phpapp https://github.com/GM-Alex/docker-phpapp

Run

docker run -d --name <containername> -e "PHP_VERSION=5.5" -v <yourappfolder>:/var/www:rw <yourname>/phpapp [-privileged]

You can choose php 5.5, 5.4, 5.3 and 5.2. Default if no env var is given is 5.5.

SSH user

User: root
Pass: root

More awesomeness with skydock

Add the following to your docker config at /etc/default/docker.io
DOCKER_OPTS="-d --bip=172.17.42.1/16 --dns=172.17.42.1"

Run the following commands
```docker pull crosbymichael/skydns
docker run -d -p 172.17.42.1:53:53/udp --name skydns crosbymichael/skydns -nameserver 8.8.8.8:53 -domain docker
docker pull crosbymichael/skydock
docker run -d -v /var/run/docker.sock:/docker.sock --name skydock crosbymichael/skydock -ttl 30 -environment dev -s /docker.sock -domain docker -name skydns


Add the following to _/etc/resolvconf/resolv.conf.d/head_
```nameserver 172.17.42.1

and run

resolvconf -u

Now you can access your app via http://<containername>.phpapp.dev.docker.

Docker Pull Command
Owner
gmalex

Comments (0)