Hi All,
I’m trying to host a project on a computer that lives on my local network and have it discoverable via mDNS.
Ideally I have everything in a docker-compose.yml
however I can’t get basic multicasting working when the app is containerised and using network_mode: "host"
The application is located here: mdns/examples at master · spider-gazelle/mdns · GitHub
If the application is run directly on the host via crystal ./examples/query_responder.cr
then everything works as expected.
However if I run the application via docker, i.e. this example docker-compose
(link to the dockerfile for the image specified)
version: "3.7"
services:
mdns:
image: placeos/mdns-service:latest
restart: always
container_name: drivers-mdns
network_mode: "host"
environment:
DOMAIN_NAMES: myservice.local
IP_ADDRESS: "127.0.0.1"
then running ping myservice.local
fails only when running the app in the container.
Given I’ve specified network_mode: host I would expect no difference in behaviour… Anyone have any ideas?