32 lines
810 B
YAML
32 lines
810 B
YAML
version: '2'
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:latest
|
|
command: --api
|
|
dns:
|
|
- 1.1.1.1
|
|
- 1.0.0.1
|
|
labels:
|
|
io.rancher.container.agent.role: environment
|
|
io.rancher.container.create_agent: true
|
|
io.rancher.container.pull_image: always
|
|
{{- if (.Values.HOST_LABEL)}}
|
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
|
{{- end}}
|
|
networks:
|
|
- public-proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "${DASHBOARD_PORT}:8080"
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /RancherConfig/${DATA_DIR}/traefik.toml:/traefik.toml
|
|
- /RancherConfig/${DATA_DIR}/acme.json:/acme.json
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
networks:
|
|
public-proxy: |