2026-02-13 15:44:04 +01:00

41 lines
1.0 KiB
YAML

services:
simple:
image: traefik/whoami
withtcplabels:
image: traefik/whoamitcp
command: [ "-name", "my.super.host" ]
labels:
traefik.tcp.Routers.Super.Rule: HostSNI(`my.super.host`)
traefik.tcp.Routers.Super.tls: true
traefik.tcp.Services.Super.Loadbalancer.server.port: 8080
withlabels1:
image: traefik/whoami
labels:
traefik.http.Routers.Super.Rule: Host(`my.super.host`)
withlabels2:
image: traefik/whoami
labels:
traefik.http.Routers.SuperHost.Rule: Host(`my-super.host`)
withonelabelmissing:
image: traefik/whoami
labels:
traefik.random.value: my.super.host
powpow:
image: traefik/whoami
command:
- --port=2375
labels:
traefik.http.Routers.Super.Rule: Host(`my.super.host`)
traefik.http.Services.powpow.LoadBalancer.server.Port: 2375
nonRunning:
image: traefik/whoami
labels:
traefik.http.Routers.NonRunning.Rule: Host(`non.running.host`)
traefik.docker.allownonrunning: "true"