xperimental / nextcloud-exporter

Prometheus exporter for Nextcloud servers.
MIT License
226 stars 34 forks source link

9205 not exposed #121

Open mattwhi opened 2 days ago

mattwhi commented 2 days ago

Hi I'm attempting to run this docker which is running but the port isn't exposed and I can't access it

TheRealKasumi commented 2 days ago

Hi, I just randomly saw your question. Im not fully sure what your setup is and what you are trying to achieve. But I assume prometheus is running on your host and so want to forward container port 9205 to your host. You can do that by adding the -p parameter to your docker command. See the docker networking documentation.

-p <host_port>:<container_port>

So if you take the docker run command from the ReadMe:

docker run --rm -it ghcr.io/xperimental/nextcloud-exporter --login --server https://nextcloud.example.com

You could try this instead:

docker run --rm -p 9205:9205 -it ghcr.io/xperimental/nextcloud-exporter --login --server https://nextcloud.example.com

Maybe that helps. Good luck.