32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
traefik:
|
|
ports:
|
|
- ${admin_port}:${admin_port}/tcp
|
|
- ${http_port}:${http_port}/tcp
|
|
log_driver: ''
|
|
labels:
|
|
io.rancher.scheduler.global: 'true'
|
|
io.rancher.scheduler.affinity:host_label: traefik_lb=true
|
|
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
|
io.rancher.sidekicks: traefik-conf
|
|
io.rancher.container.hostname_override: container_name
|
|
tty: true
|
|
log_opt: {}
|
|
image: rawmind/alpine-traefik:1.0.0-beta.555-6
|
|
environment:
|
|
- TRAEFIK_HTTP_PORT=${http_port}
|
|
- TRAEFIK_ADMIN_PORT=${admin_port}
|
|
- CONF_INTERVAL=${refresh_interval}
|
|
volumes_from:
|
|
- traefik-conf
|
|
traefik-conf:
|
|
log_driver: ''
|
|
labels:
|
|
io.rancher.scheduler.global: 'true'
|
|
io.rancher.scheduler.affinity:host_label: traefik_lb=true
|
|
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
|
io.rancher.container.start_once: 'true'
|
|
tty: true
|
|
log_opt: {}
|
|
image: rawmind/rancher-traefik:0.0.1-10
|
|
net: none
|