InvenTree Traefik Reverse-Proxy Container-Labels
Dieser Post basiert auf InvenTree mit Docker in nur 5 Minuten installieren und verwendet die dort automatisch generierte docker-compose.yml. Er sollte jedoch für fast jedes Setup verwendbar sein.
Das Setup ist ziemlich Standard, da der InvenTree-Proxy-Container den Webserver auf Port 80 betreibt. Daher müssen Sie nicht einmal explizit einen Load-Balancer-Port angeben
Fügen Sie in Ihrer docker-compose.yml die folgenden labels zum inventree-proxy-Container hinzu:
Wildcard-Zertifikat-Setup:
Für weitere Details zum Basis-Traefik-Setup siehe Einfaches Traefik docker-compose-Setup mit Lets Encrypt Cloudflare DNS-01 & TLS-ALPN-01 & HTTP-01 Challenges
inventree_traefik_labels.yml
labels:
- "traefik.enable=true"
- "traefik.http.routers.inventree-mydomain.rule=Host(`inventree.mydomain.com`)"
- "traefik.http.routers.inventree-mydomain.entrypoints=websecure"
- "traefik.http.routers.inventree-mydomain.tls.certresolver=cloudflare"
- "traefik.http.routers.inventree-mydomain.tls.domains[0].main=mydomain.com"
- "traefik.http.routers.inventree-mydomain.tls.domains[0].sans=*.mydomain.com"If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow