#Been a few days and I can t figure
1 messages ยท Page 1 of 1 (latest)
Docker
then there's nothing special about HA for this
Right, I must be missing something then as I really don't understand how to get it to work
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.homeassistant.rule=Host(`yourdomain.example.net`)"
- "traefik.http.routers.homeassistant.entrypoints=websecure"
- "traefik.http.routers.homeassistant.tls=true"
- "traefik.http.routers.homeassistant.tls.certresolver=zerossl"
- "traefik.http.services.homeassistant.loadBalancer.server.port=8123"
``` for instance
Does that go into the docker-compose.yml?
Yes
Well, you'll do that for the certresolver
My main Traefik config looks like https://gist.github.com/DubhAd/5fffb74c683dd0d96f71d41928ca502a
sorry, does that go under networks?
Doesn't seem to work really under networks
No, that's just applied for the compose entry
right, I tried that however it says ERROR: The Compose file './docker-compose.yml' is invalid because:
Invalid top-level property "labels". Valid top-level sections for this Compose file are: version, services, networks, volumes, and extensions starting with "x-".
So I have added it onto the docker-compose.yml file and it seems to be fine. What else do I need to do to get it to work? I also noticed in the Traefic web ui it shows Home-Assistant and homeassistant, would they need to match?
Well, anybody accessing vodahomerouter.ddns.net should be routed to the homeassistant service, based off of that image
You also have added something else for the host Home-Assistant for some reason
I believe it picked up the docker images I have
Ah that should be Home-Assistant instead of homeassistant then
I assume
Or I could probably just rename it
I think I broke it haha
Neither show up now
@radiant ibex When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.
You have to change this every time (thank the Discord devs for that).
No config though, I don't see where that is
Sorry about the pings, I forgot about that
Well, you have config... that's how your setting this all up
So far I have put it all in the docker-compose haha
That may be files, it may be labels, but ... no config no Traefik
Oh right, ok. I'll have to do some digging then ๐
https://community.traefik.io/ may be better placed to help you work out how to use Traefik
Only edited this so far https://pastebin.com/pRTCnGc1