nginx-proxy is a Nginx reverse proxy Docker image for proxying requests to webserver containers & returning responses.
Docker images can be pulled using the Docker CLI.
docker pull stephenneal/nginx-proxy:1.19-alpine-v1
Add a 'proxy' container for proxying requests to your 'webserver' containers.
proxy:
image: stephenneal/nginx-proxy:1.19-alpine-v1
container_name: proxy
volumes:
- certs:/etc/letsencrypt
environment:
- validation_domain=validation.example.com
- domain=localhost:webserver example.com:webserver
- cache_enabled=1 # enable static content caching
ports:
- 80:80
- 443:443
depends_on:
- certbot
networks:
- app-network
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.