version: '3'

services:
  proxy:
    image: jwilder/nginx-proxy:alpine
    labels:
      com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
    ports:
      - 80:80
      - 443:443
    networks:
      - ttrss_frontend
    volumes:
      - certs:/etc/nginx/certs 
      - vhost:/etc/nginx/vhost.d
      - html:/usr/share/nginx/html
      - /var/run/docker.sock:/tmp/docker.sock:ro

  letscrypt-proxy:
    image: jrcs/letsencrypt-nginx-proxy-companion
    depends_on:
      - proxy
    volumes:
      - certs:/etc/nginx/certs       
      - vhost:/etc/nginx/vhost.d
      - html:/usr/share/nginx/html
      - /var/run/docker.sock:/var/run/docker.sock:ro

volumes:
  certs:
  vhost:
  html:

networks:
  ttrss_frontend:
    external: true

Add proxy container with let's encrypt support
Add proxy container with let's encrypt support

These are actually two containers.

A nginx reverse proxy, a HTTPS proxy that redirects content to proper
backend container.

And a let's encrypt container, that is in charge of creating and
renewing the certificates for backend containers.
