Skip to content

marcofilippetti/docker-nginx-php5-fpm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple container with Nginx, PHP5-FPM, and Ubuntu 14.04.


To pull this image from Docker Hub:

docker pull vutran/docker-nginx-php5-fpm

To run an instance of this image:

docker run --name mywebapp -d -P vutran/docker-nginx-php5-fpm

You can mount your local application directory to the container at /var/www/html:

docker run --name mywebapp -d -P -v /src/html:/var/www/html vutran/docker-nginx-php5-fpm

Open the URL in the browser

open http://$(boot2docker ip):$(docker port mywebapp 80 | sed 's/0.0.0.0://g')

Dockerfile

You can also build your own image with this as the base and apply your own application-specific configurations if needed.

For more information, please see the Dockerfile documentations.

Dockerfile

FROM vutran/docker-nginx-php5-fpm

# Execute or run any additional instructions here such
# Example:
# COPY website.conf /etc/nginx/conf.d/website.conf
# ENV myEnvVar myEnvValue

Docker Compose

If you have a complex application, you can use Docker Compose to run everything in a single command.

For more information, please see the Docker Compose documentation

docker-compose.yml

web:
    build: .
    volumes:
     - .:/var/www/html

About

This is a simple container with Nginx, PHP5-FPM, and Ubuntu 14.04.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%