mirror of
https://github.com/traefik/traefik.git
synced 2026-05-04 12:01:15 +02:00
41 lines
1.0 KiB
YAML
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"
|