Sign inSign up

andreisusanu/nginx-php7

By andreisusanu

•Updated over 10 years ago

Docker image for NGINX with PHP7

Image
6

4.3K

andreisusanu/nginx-php7 repository overview

⁠nginx-php7

Docker image for NGINX and PHP7, started using Supervisor.

Last stable NGINX installed from official stable repository (http://ppa.launchpad.net/nginx/stable/ubuntu⁠) Last PHP7 installed from Ondřej Surý's unofficial repository (http://ppa.launchpad.net/ondrej/php/ubuntu⁠)

⁠Build image

docker build -t andreisusanu/nginx-php7 .

⁠Run container

docker run \
    --name nginx-php7 \
    -p 8000:80 \
    -v /path/to/local/www:/var/www/html \
    andreisusanu/nginx-php7

⁠Test container

http://localhost:8000/

⁠Run bash on container (for debug)

docker exec -it nginx-php7 bash

Tag summary

Content type

Image

Digest

Size

117.6 MB

Last updated

over 10 years ago

docker pull andreisusanu/nginx-php7