# Traefik file-provider dynamic config.
# Copy to traefik LXC's dynamic config dir (the one referenced by
# providers.file.directory in traefik's static config), then edit
# HOST_DOMAIN and PORTAINER_LXC_IP below.

http:
  routers:
    epicure:
      rule: "Host(`HOST_DOMAIN`)"
      entryPoints:
        - websecure
      service: epicure
      tls:
        certResolver: letsencrypt # match whatever resolver name is set in your traefik static config

  services:
    epicure:
      loadBalancer:
        servers:
          - url: "http://PORTAINER_LXC_IP:3000" # match WEB_PORT from compose.prod.yml env
        healthCheck:
          path: /
          interval: 10s
          timeout: 3s
