maddox / harmony-api

🗼 A simple server allowing you to query/control multiple local Harmony Home Hubs over HTTP or MQTT
MIT License
393 stars 115 forks source link

How Do You Get Discovery Working In Docker? #62

Closed CWSpear closed 7 years ago

CWSpear commented 7 years ago

Trying to use the Docker version. Works fine outside of Docker, but it won't discover the hubs. Tried mapping extra ports (docker-compose config), but it won't ever find the hubs.

ports:
  - 61991:61991
  - 61991:61991\udp
  - 5224:5224
  - 5224:5224\udp
CWSpear commented 7 years ago

I had to add network_mode: host (the equivalent of --net=host on the CLI).

It only worked on Linux... on my Mac (using Docker for Mac), I'd probably have to configure some stuff with the VM.

May be worth adding these notes to the docs?

Edit: Looks like adding all the ports was unnecessary, too.

Also... oh my gosh, just realized you did have a note about --net=host. The last wasted 3 hours is all on me, lol

NeoMatrixJR commented 6 years ago

What made you add the ports listed above and did you keep them after adding host? I have my docker set for host but it still won't find my hub.