Skip to content

Server with NGINX + PHP 7.1.16. php-fpm based on Alpine Linux

Notifications You must be signed in to change notification settings

panttojo/alpine-nginx-php-fpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpine-nginx-php-fpm

Server with NGINX + PHP 7.1.16. php-fpm based on Alpine Linux

Requirements: Install docker: https://docs.docker.com/install/

Build image

docker build -t alpine-nginx:0.01 .

Run the container

To simply run the container:

docker run -d -p 8080:80 alpine-nginx:0.01

Test the container:

curl http://localhost:8080/

Volumes

Website directory

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

docker run --name alpine-nginx -p 8080:80 -v /public:/var/www/html -d alpine-nginx:0.01

NGINX forbidden

If you have problems with nginx permissions ("/var/www/html/index.php" is forbidden (13: Permission denied))

Try:

docker exec -ti alpine-nginx bash
chown -R nginx:nginx /var/www/html/

About

Server with NGINX + PHP 7.1.16. php-fpm based on Alpine Linux

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published