gatorback
(Raymond C)
November 24, 2023, 5:41am
1
CONTEXT
AMD / 12GB / 1TB SSD
Docker HA
WAN ports forwarded for web access: www.mydomain.com
GOAL:
QUESTIONS:
I understand that Traefic or NGINX can serve as the reverse proxy:
Is it best practice / Does it make sense to have the reverse proxy in its own container?
What questions must be asked / answered to decide if Traefic or NGINX is the better choice
Tinkerer
(aka DubhAd on GitHub)
November 24, 2023, 10:21am
2
gatorback:
Is it best practice / Does it make sense to have the reverse proxy in its own container?
Yes
gatorback:
What questions must be asked / answered to decide if Traefic or NGINX is the better choice
Do you want a modern proxy that handles SSL for you (Traefik) or do you want to manage SSL elsewhere (NGINX).
1 Like
gatorback
(Raymond C)
November 24, 2023, 3:57pm
3
Good to hear from you Tinkerer. Thank you for simplifying the decisions. Do you have any “lessons learned” regarding Traefik implemented in containers?
Tinkerer
(aka DubhAd on GitHub)
November 24, 2023, 4:12pm
4
Honestly, I just followed the docs. You’ll have to tell it the port to use, something like this added to the compose entry:
labels:
- "traefik.enable=true"
- "traefik.http.routers.homeassistant.rule=Host(`ha.ceard.tech`)"
- "traefik.http.routers.homeassistant.tls=true"
- "traefik.http.routers.homeassistant.tls.certresolver=zerossl"
- "traefik.http.routers.homeassistant.entrypoints=websecure"
- "traefik.http.services.homeassistant.loadBalancer.server.port=8123"
I happen to run HA remote from Traefik, so my setup is subtly different, but Traefik is well documented and has an active forum (plus many people have written great guides).
1 Like