Skip to content

kairosinc/nginx-php-alpine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a Dockerfile to build a container image for nginx and php5-fpm using Alpine Linux as the base.

Git reposiory

The source files for this project can be found here: https://github.com/kairosinc/nginx-php-alpine

If you have any improvements please submit a pull request.

Running

To simply run the container:

sudo docker run --name nginx -p 8080:80 -d kairos/nginx-php-alpine

You can then browse to http://localhost:8080 to view the default install files.

Special Features

Turn on Basic Authentication

To turn on nginx's HTTP basic authentication set an environment variable ENABLE_BASIC_AUTH to true

To create a htpassword file, you can use this:

htpasswd -nb YOUR_USERNAME SUPER_SECRET_PASSWORD >/etc/secrets/htpasswd

Or to Base64 encode and put inside a volume:

htpasswd -nb YOUR_USERNAME SUPER_SECRET_PASSWORD | base64

About

Nginx PHP-FPM Alpine Linux Base Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published