Skip to content

Docker Compose example of Let's Encrypt Nginx reverse proxy

License

Notifications You must be signed in to change notification settings

iamskok/nginx-reverse-proxy

Repository files navigation

ci GitHub release Docker Image Size Docker stars Docker pulls nginx 1.19.10 Renovate

Nginx Reverse Proxy

This repository shows how to run multiple instances of the app behind Nginx reverse proxy and served via HTTPS using Let's Encrypt certificate.

Features ⚙️

  • Updates Nginx config and reloads when containers are started or stopped
  • Automatically renews Let's Encrypt certificates
  • GitHub Action workflow:
    • determines the next release version
    • builds and pushes the image to Docker Hub
    • starts Docker containers on a remote host

GitHub Secrets 🔒

GitHub secrets that are required to run the workflow:

DOCKERHUB_TOKEN
DOCKERHUB_USERNAME
DOMAIN
EMAIL
REMOTE_IP
REMOTE_SSH_PRIVATE_KEY
REMOTE_USERNAME

Credits ❤️