[ol]
version: '3'
services:
speedtest-x:
image: badapple9/speedtest-x
container_name: speedtest
restart: unless-stopped
networks:
- traefik
ports:
- 9011:80
labels:
traefik.enable: true
traefik.docker.network: traefik
traefik.http.routers.speedtest.rule: Host(speedtest.*.cn)
traefik.http.routers.speedtest.tls: true
traefik.http.routers.speedtest.tls.certresolver: myresolver
traefik.http.services.speedtest.loadbalancer.server.port: 9011
networks:
traefik:
external: true[/ol]复制代码