Skip to content

Leveraging nginx-proxy with Let's encrypt using Docker compose

Notifications You must be signed in to change notification settings

JohnMichaelTO/nginx-proxy-letsencrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Nginx reverse proxy with Let's encrypt SSL certificate

This is a simple repo containing a docker compose file to run an nginx reverse proxy with a let's encrypt SSL certificate.

More details can be found here.

To attach another docker container, you simply need to run another docker compose with a file containing this:

version: "3.5"

services:
  my-service:
    image: nginx:1.19-alpine
    ports:
      - "80:80"
    networks:
      - other_network
      - backend
    environment:
      VIRTUAL_HOST: "subdomain.domain.com"
      LETSENCRYPT_HOST: "subdomain.domain.com"
      LETSENCRYPT_EMAIL: "my@email.com"

networks:
  other_network:
  backend:
    external: true
    name: nginx-proxy-letsencrypt_backend

About

Leveraging nginx-proxy with Let's encrypt using Docker compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published