Sign inSign up

kairos/nginx-php-alpine

By kairos

Updated almost 9 years ago

Nginx PHP-FPM Alpine Linux Base Image

Image
2

1.1K

kairos/nginx-php-alpine repository overview

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

Tag summary

Content type

Image

Digest

Size

35 MB

Last updated

almost 9 years ago

docker pull kairos/nginx-php-alpine