Files
Personal-Rancher-Catalog/templates/Traefik/1/docker-compose.yml

32 lines
1.1 KiB
YAML

version: '2'
services:
traefik:
image: traefik:2.0-alpine
dns: # Using Cloudflare DNS
- 1.1.1.1
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
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}}
ports:
- "22:22" # SSH
#- "80:80" # HTTP
#- "443:443" # HTTPS
- "3306:3306" # MySQL
- "19132:19132" # Minecraft
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
- /Persistent/${DATA_DIR}/Configuration/traefik.toml:/traefik.toml
- /Persistent/${DATA_DIR}/Configuration/ExtraConfig:/ExtraConfig
- /Persistent/${DATA_DIR}/LetsEncrypt:/letsencrypt # For Let's Encrypt certificates
- /Persistent/${DATA_DIR}/Logs:/external/logs