Files
Personal-Rancher-Catalog/templates/Bind/0/docker-compose.yml
2018-07-10 16:12:02 -04:00

24 lines
563 B
YAML

version: '2'
services:
bind:
image: sameersbn/bind
dns:
- localhost
environment:
WEBMIN_ENABLED: ${WEBMIN_ENABLED}
{{- if eq .Values.WEBMIN_ENABLED "true"}}
ROOT_PASSWORD: ${WEBMIN_ROOT_PASS}
{{- end}}
labels:
{{- 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:
- ${STORAGE_BASE_DIR}${DATA_DIR}:/data