Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
/ nginx-php72 Public archive

Docker container for running PHP applications on PHP 7.1 and NGINX

License

Notifications You must be signed in to change notification settings

monday-factory/nginx-php72

Repository files navigation

Nginx and PHP for Docker

Last Version

nginx: 1.11.1
php: 7.2.0

Docker Hub

Nginx-PHP7.2: https://hub.docker.com/r/legerete/nginx-php71

Installation

Pull the image from the docker index rather than downloading the git repo. This prevents you having to build the image on every docker host.

docker pull legerete/nginx-php7:latest

Running

To simply run the container:

docker run --name nginx -p 8080:80 -d legerete/nginx-php71

You can then browse to http://<docker_host>:8080 to view the default install files.

Volumes

If you want to link to your web site directory on the docker host to the container run:

docker run --name nginx -p 8080:80 -v /your_code_directory:/data/www -d legerete/nginx-php71

Enabling SSL

docker run -d --name=nginx \
-p 80:80 -p 443:443 \
-v your_crt_key_files:/usr/local/nginx/conf/ssl \
-e PROXY_WEB=On \
-e PROXY_CRT=your_crt_name \
-e PROXY_KEY=your_key_name \
-e PROXY_DOMAIN=your_domain \
legerete/nginx-php71

Enabling Extensions

docker run --name nginx -p 8080:80 -d -v /your_php_extension:/usr/local/php/etc/php.d legerete/nginx-php71

Author

Author: Petr Besir Horáček Email: [email protected]

Thanks to

Author: Skiychan
Email: [email protected]
Link: https://www.zzzzy.com

About

Docker container for running PHP applications on PHP 7.1 and NGINX

Resources

License

Stars

Watchers

Forks

Packages

No packages published