Skip to content
Docker image running Alpine Linux and NGINX.
Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cache
common
.travis.yml
Dockerfile
LICENSE
README.md
demyx.sh
nginx.conf
travis.sh
wp.conf

README.md

nginx

Build Status Docker Pulls Architecture Alpine NGINX Buy Me A Coffee

nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.

TITLE DESCRIPTION
USER demyx
PORT 8080
ENTRYPOINT ["dumb-init", "demyx"]
TIMEZONE America/Los_Angeles
CONFIGS /demyx

Updates & Support

Code Size Repository Size Watches Stars Forks

  • Auto built weekly on Sundays (America/Los_Angeles)
  • Rolling release updates
  • For support: #demyx

Usage

docker run -dit --rm \
--name nginx \
-e WORDPRESS="true" \               # Only set to true if using for WordPress
-e WORDPRESS_CONTAINER=wp \         # Name of PHP/WordPress container
-e NGINX_DOMAIN=domain.tld \        # WordPress only setting
-e NGINX_UPLOAD_LIMIT=128M \        # WordPress only setting
-e NGINX_CACHE=false \              # WordPress only setting
-e NGINX_RATE_LIMIT=false \         # WordPress only setting
-e NGINX_XMLRPC=false \             # WordPress only setting
-e NGINX_BASIC_AUTH=false \         # WordPress only setting
-e TZ=America/Los_Angeles \
demyx/nginx
  • To generate htpasswd: docker run -it --rm demyx/utilities "htpasswd -nb demyx demyx"
  • NGINX_BASIC_AUTH must have double dollar signs ($$)
You can’t perform that action at this time.