Files
Personal-Rancher-Catalog/templates/Traefik/0/docker-compose.yml
2018-07-17 06:30:12 -04:00

25 lines
556 B
YAML

version: '2'
services:
traefik:
image: traefik:latest
command: --api --docker
labels:
io.rancher.container.hostname_override: traefik
{{- if (.Values.HOST_LABEL)}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
networks:
- public
ports:
- "80:80"
- "443:443"
- "8080:8080"
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/traefik/traefik.toml:/traefik.toml
- /opt/traefik/acme.json:/acme.json
networks:
public: