version: "2"
services:
    nginx-proxy:
      image: jwilder/nginx-proxy
      container_name: nginx-proxy
      restart: unless-stopped
      ports:
        - "{{ nginx_http_port }}:80"
        - "{{ nginx_https_port }}:443"
      volumes:
          - /var/run/docker.sock:/tmp/docker.sock:ro
          - /etc/docker-compose/nginx-proxy/proxy.conf:/etc/nginx/proxy.conf
          - /etc/docker-compose/nginx-proxy/certs:/etc/nginx/certs
      network_mode: "bridge"
