duck_lol
@duck_lol@programming.dev
- Comment on Automatically publish .local addresses from Docker Compose labels 1 year ago:
If you prefer, I think Avahi is able to publish other TLDs, but I played around with it just now and couldn’t get it to work. If you have any luck, happy to add support :)
# Set domain-name=lan and enable-wide-area=no nano /etc/avahi/avahi-daemon.conf sudo avahi-daemon --reload sudo avahi-publish-address -R example.lan 192.168.1.123
- Comment on Automatically publish .local addresses from Docker Compose labels 1 year ago:
Hey, thanks, I too am very lazy and that’s why I wrote this :) Let me know if you need any tweaks.
- Comment on Automatically publish .local addresses from Docker Compose labels 1 year ago:
If anybody liked this but wished it automatically picked up label changes, I just took an hour to hack it in :)
- Comment on Automatically publish .local addresses from Docker Compose labels 1 year ago:
Yes, exactly!
You actually don’t need Traefik at all - if your containers are already available server_ip:port, on your local network, whether directly or by another proxy, you can just add the label (
traefik.http.routers.x.rule=Host(`example.local`)
) to the container and this will pick it up, no Traefik needed.I’m meaning to rework the README a bit to make this clear, and perhaps add a simpler label you can use :)
- Submitted 1 year ago to selfhosted@lemmy.world | 9 comments