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
DOMAINS
(required)UPSTREAM
(defaultapi:8080
)
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
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