farwayer / nginx-proxy

Simple out-of-the-box nginx proxy with Let's Encrypt integration

Home Page:https://hub.docker.com/r/farwayer/nginx-proxy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx-proxy

Docker Build Status MicroBadger Size

Simple out-of-the-box nginx proxy with Let's Encrypt integration:

  • auto request and renew https certificate
  • http and websocket upstream support
  • simple configuration with envs
  • A+ ssllabs rating
  • based on alpine and very small (~8Mb)
  • http->https redirect and upstream keepalive

How to use

envs

  • DOMAINS (required)
  • UPSTREAM (default api:8080)

docker

docker run -it -p 80:80 -p 443:443 \
 -e DOMAINS=domain.com,www.domain.com,my.domain.com -e UPSTREAM=1.2.3.4:8080 \
 farwayer/nginx-proxy 

docker-compose

  version: '2'
  
  services:
    api:
      image: ... 
  
    proxy:
      image: farwayer/nginx-proxy:1.0.0
      depends_on: [api]
      ports: ['80:80', '443:443']
      environment:
        - DOMAINS=domain.com,www.domain.com,my.domain.com # required
        - UPSTREAM=api:1234 # api:8080 by default 

About

Simple out-of-the-box nginx proxy with Let's Encrypt integration

https://hub.docker.com/r/farwayer/nginx-proxy/


Languages

Language:Shell 55.4%Language:Dockerfile 44.6%