Nginx reverse proxy with automatic SSL and Let's Encrypt
926
Reverse proxy with automatic SSL (Let's Encrypt or self-signed).
docker run -d \
-e UPSTREAM_HOST=myapp \
-e UPSTREAM_PORT=3000 \
-p 80:80 -p 443:443 \
ogulcanaydogan/nginx-ssl-proxy
docker run -d \
-e UPSTREAM_HOST=myapp \
-e UPSTREAM_PORT=3000 \
-e SERVER_NAME=example.com \
-e AUTO_SSL=true \
-e [email protected] \
-p 80:80 -p 443:443 \
ogulcanaydogan/nginx-ssl-proxy
| Variable | Description | Default |
|---|---|---|
UPSTREAM_HOST | Backend host | app |
UPSTREAM_PORT | Backend port | 3000 |
SERVER_NAME | Domain name | localhost |
AUTO_SSL | Use Let's Encrypt | false |
SSL_EMAIL | Email for Let's Encrypt | - |
services:
proxy:
image: ogulcanaydogan/nginx-ssl-proxy
environment:
- UPSTREAM_HOST=app
- UPSTREAM_PORT=3000
- SERVER_NAME=example.com
- AUTO_SSL=true
- [email protected]
ports:
- "80:80"
- "443:443"
volumes:
- certs:/etc/letsencrypt
app:
image: myapp
expose:
- "3000"
volumes:
certs:
MIT
Content type
Image
Digest
sha256:c4fb6cd06…
Size
47.4 MB
Last updated
10 months ago
docker pull ogulcanaydogan/nginx-ssl-proxy