fhem / alexa-fhem-docker

A FHEM complementary Docker image for Amazon alexa voice assistant, based on Debian.
https://fhem.de/
MIT License
6 stars 3 forks source link

Option for an environment variable to listen on different ip #1

Closed Pantastisch closed 5 years ago

Pantastisch commented 5 years ago

Hello,

while integrating this service, I see following error in my log:

[5/3/2019, 10:27:44 PM] [FHEM] trying longpoll to listen for fhem events [5/3/2019, 10:27:44 PM] [FHEM] starting longpoll: http://fhem:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1556915264419 [5/3/2019, 10:27:44 PM] [FHEM] longpoll error: Error: getaddrinfo ENOTFOUND fhem fhem:8083, retry in: 30000msec *** FHEM: connection failed: Error: getaddrinfo ENOTFOUND fhem fhem:8083

Due to my fhem is not reacheable at http://fhem:8083 this error is occuring.

An environment option for setting the FHEM server and maybe its port would be a nice feature.

Pantastisch commented 5 years ago

Solved by rearranging the docker command to docker run -d --name alexa-fhem -p 3000:3000 -v /some/host/directory:/alexa-fhem fhem/alexa-fhem

So the config file can be changed and the volume is not placed as an environment variable to the container.