Public Repository

Last pushed: 2 months ago
Short Description
Nginx with authbasic support based on Alpine Linux
Full Description

Nginx container with authbasic support based on Alpine Linux
Need set HTUSER and HTPASSWD env

docker run --name nginx -e HTUSER=foo -e HTPASSWD=bar -v /host/path:/usr/share/nginx/html:ro -p 80:80 stefanocog/nginx-alpine-basicauth

or in docker-compose.yml

version: '2'
 services:
  nginx:
   image: stefanocog/nginx-alpine-basicauth
   environment:
    - HTUSER=foo
    - HTPASSWD=bar
   volumes:
    - /host/path:/usr/share/nginx/html:ro
   ports:
    - 80:80
Docker Pull Command
Owner
stefanocog

Comments (0)