matrix-webhook-gateway icon indicating copy to clipboard operation
matrix-webhook-gateway copied to clipboard

starting from docker fails: connect ECONNREFUSED 127.0.0.1:8008

Open horstepipe opened this issue 2 years ago • 1 comments

Hello I am just trying to move from "normal" installation to the docker one, while learing about the docker structure in parallel. From my understanding the docker compose file is only for reference if you want to setup multiple docker containers containing this webhook gateway?

So basically I just installed docker and the dependencies, pulled the webhook gateway and tried to start it - unfortunately I'm getting this error and have no idea what could be the problem. I'd be really appreciated If you have a minute and help me out a little, here is the error:

https://pastebin.com/EVxtH6E1

Best regards

horstepipe avatar Jan 04 '23 11:01 horstepipe

It looks like you will still need to update your homeserver_url. Right now it tries to connect to 127.0.0.1:8008, but now that you're running in Docker, that URL will refer to the Docker container. If your homeserver runs on the same server as your Docker installation, that will probably have to become something like 172.17. 0.1:8008.

Regarding your question about the compose file: Yes, you can use docker-compose to run multiple services in parallel. However, (and this is the reason I published an example file in the project readme) it also allows you to drop all container configuration into a single file, so you can just run docker-compose up instead of having to do something like docker run geluk/matrix-webhook-gateway:latest -v ./data:/data -v ./config:/config:ro -p 8020:8020 -p 8023:8023

geluk avatar Jan 10 '23 15:01 geluk