Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 781 Bytes

File metadata and controls

29 lines (24 loc) · 781 Bytes

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