Traefik (v2)

If you notice any mistakes that need to be corrected, please reach out on Discord!

Traefik Subdomain Example

Assuming a basic setup like the one in the Traefik documentationarrow-up-right where an entrypoint called websecure exists, adding these labels down below to the Petio service should be the minimum that's needed to reverse proxy Petio.

labels:
    - "traefik.enable=true"
    ## HTTP Routers
    - "traefik.http.routers.petio-rtr.entrypoints=websecure"
    - "traefik.http.routers.petio-rtr.rule=Host(`petio.mydomain.com`)"
    - "traefik.http.routers.petio-rtr.tls=true"
    ## HTTP Services
    - "traefik.http.routers.petio-rtr.service=petio-svc"
    - "traefik.http.services.petio-svc.loadbalancer.server.port=7777"

Last updated