Public | Automated Build

Last pushed: 3 months ago
Short Description
Nginx PHP-FPM Alpine Linux Base Image
Full Description

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
Docker Pull Command
Owner
kairos
Source Repository