Open hehe9011 opened 11 months ago
兄弟,traefik.http.services.speedtest.loadbalancer.server.port是容器的端口,而不是宿主机。
下面的是我的,正常使用
speedtest-x:
image: dockerproxy.net/badapple9/speedtest-x:latest
container_name: speedtest-x
environment:
- SAME_IP_MULTI_LOGS=true
ports:
- 9001:80
#network_mode: host
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.port=9001"
- "traefik.http.routers.speedtest-x.rule=Host(`speedtest-x.domain.com`)"
- "traefik.http.routers.speedtest-x.entrypoints=websecure"
- "traefik.http.routers.speedtest-x.tls.certresolver=letsencrypt"
- 'traefik.http.routers.speedtest-x.middlewares=authelia@docker'
networks:
- "traefik_net"
部署环境: Ubuntu 22.04.3 LTS
使用docker compose 部署:
无法访问,显示404 page not found, docker log如下: