1
0
mirror of https://github.com/Luzifer/docker-php5-nginx.git synced 2024-09-07 17:59:14 +00:00
Go to file
Knut Ahlers 07077ebc2e Merge pull request #1 from s0enke/php_fpm
Use PHP FPM instead of ancient Spawn-FCGI
2015-07-09 00:12:43 +02:00
files Use PHP FPM instead of ancient Spawn-FCGI 2015-07-07 22:47:02 +02:00
handlers Use PHP FPM instead of ancient Spawn-FCGI 2015-07-07 22:47:02 +02:00
tasks Use PHP FPM instead of ancient Spawn-FCGI 2015-07-07 22:47:02 +02:00
templates Use PHP FPM instead of ancient Spawn-FCGI 2015-07-07 22:47:02 +02:00
.gitignore Initial version of luzifer/php5-nginx 2014-09-07 00:27:17 +02:00
Dockerfile Added README; Fixed container startup 2014-09-07 00:54:43 +02:00
inventory Initial version of luzifer/php5-nginx 2014-09-07 00:27:17 +02:00
playbook.yml Use PHP FPM instead of ancient Spawn-FCGI 2015-07-07 22:47:02 +02:00
README.md Fixed README, ADD has to be called directly 2014-10-03 16:26:36 +02:00
Vagrantfile Initial version of luzifer/php5-nginx 2014-09-07 00:27:17 +02:00

luzifer/php5-nginx Dockerfile

This repository contains Dockerfile of Nginx with PHP5 applications which have an index.php as an entry point like PHPFramework apps for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull luzifer/php5-nginx

    (alternatively, you can build an image from Dockerfile: docker build -t="luzifer/php5-nginx" github.com/luzifer/php5-nginx)

Usage

Create a Dockerfile similar to the following in your application code folder:

FROM luzifer/php5-nginx

RUN mkdir -p /application
ADD . /application

EXPOSE 80
CMD ["/usr/local/bin/container-run.sh"]

Then, execute the following to build the image:

docker build -t myuser/myapp .

This will create an image named myuser/myapp with your application ready to go. To launch it, just type:

docker run -d -p 80 myuser/myapp

Easy!