roest01 / docker-speedtest-analyser

Automated docker speedtest analyser tool with included web interface to monitor your internet speed connection over time. Setup at home on your NAS (Synology, QNAP tested) and the container runs hourly speedtests. The speedtest results are displayed in an webinterface as line graph(s) over the day.
Other
108 stars 47 forks source link

No WebUI behind traefik #76

Open Wyrrrd opened 3 years ago

Wyrrrd commented 3 years ago

Hello,

I am serving my microservices behind traefik as a reverse proxy, so each service has its own subdomain. Sadly, speedtest doesn't work that way: traefik registers the service and router rule, detects the service resides on port 80, but when I try to access it, it throws a 404 error.

docker-compose ``` version: "3" volumes: data: services: ### Speedtest ### spd: container_name: spd image: roest/docker-speedtest-analyser restart: unless-stopped volumes: - data:/var/www/html/data environment: - CRONJOB_ITERATION=15 labels: - traefik.enable=true - traefik.http.routers.spd.rule=Host(`speedtest.example.com`) - traefik.http.routers.spd.entrypoints=http ```

I tried the same config plus mapping a port, then accessing via server domain and port, that worked.