docker-speedtest-analyser icon indicating copy to clipboard operation
docker-speedtest-analyser copied to clipboard

No WebUI behind traefik

Open Wyrrrd opened this issue 3 years ago • 0 comments

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.

Wyrrrd avatar Apr 28 '21 14:04 Wyrrrd