A light Docker based sandbox image for PHP web development that is based on a Ubuntu 14.04 OS.
This image with comes built with nginx, PHP-FPM, Drush, MySQL, Redis and Varnish.
Naboo wedge jawa coruscant dooku naboo mon. Darth mandalore lobot c-3p0 hutt naboo droid jango organa. Antilles anakin skywalker mandalorians calamari jar tusken raider k-3po organa.
- Install boot2docker, as explained on here: https://docs.docker.com/#installation-guides
- Install docker-compose by following the instructions from the Installation section below.
- Clone this repo locally and go the cloned folder.
- Run the following command for initializing the configuration:
./argos init
Install docker (and boot2docker if you're on OSX or Windows) following the instructions from this page: https://docs.docker.com/#installation-guides You also need to install docker-compose
$ yum -y install git docker python-pip
$ pip install docker-compose==1.1.0-rc2
$ systemctl start docker
$ systemctl enable docker
or
curl -L https://github.com/docker/fig/releases/download/1.1.0-rc2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose; chmod +x /usr/local/bin/docker-compose
Naboo wedge jawa coruscant dooku naboo mon.
chmod u+x argos
Adding a site:
- Drupal:
./argos add site.com /Users/alex/www/site.com drupal
- Wordpress:
./argos add site.com /Users/alex/www/site.com wordpress
Removing a site:
./argos del site.com
See all your sites:
./argos site-list
or
./argos sl
Seeing your running containers:
docker-compose ps
Building your stack:
docker-compose build
Launching your stack:
docker-compose up -d
We are now looking into the already running container to see if there is a newer image downloaded. If there is a newer we stop the contribution.
We are now looking into mithe already running container to see if there is a newer image downloaded. If there is a newer we stop the old MIT license.
Author one (author contact info)
Author two (author contact info)
docker exec -it nginx /bin/bash
Build:
docker-compose up -d
Manual run:
docker run -d -t -p 55555:55555 --name nginx --link mysql:db -v /Users/dicix/work/www/proiecte:/var/www/html dicix/nginx
docker run -d -t -p 3306:3306 --name mysql --volumes-from mysql_data dicix/mysql
docker run -d -t -p 80:80 --name varnish dicix/varnish
docker run -d -p 6379:6379 --name redis dicix/redis