Files
Personal-Rancher-Catalog/templates/Bind/0/docker-compose.yml
2018-09-05 23:14:18 -04:00

36 lines
868 B
YAML

version: '2'
services:
bind:
image: sameersbn/bind
dns:
- 1.1.1.1
- 1.0.0.1
environment:
WEBMIN_ENABLED: ${WEBMIN_ENABLED}
{{- if eq .Values.WEBMIN_ENABLED "true"}}
ROOT_PASSWORD: ${WEBMIN_ROOT_PASS}
{{- end}}
labels:
io.rancher.container.pull_image: always
{{- if (.Values.HOST_LABEL)}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
ports:
- "53:53/tcp"
- "53:53/udp"
{{- if eq .Values.WEBMIN_ENABLED "true"}}
- "${WEBMIN_PORT}:10000"
{{- end}}
restart: on-failure
volumes:
- Data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
volumes:
Data:
driver: rancher-nfs
driver_opts:
host: 10.0.10.21
export: /RancherCattleData/${DATA_DIR}/Data
onRemove: retain