From 51446bb00b0c14e3947125f944fd9d10612a36ea Mon Sep 17 00:00:00 2001 From: Justin Riley Date: Wed, 13 Jul 2016 23:46:26 -0400 Subject: [PATCH] initial docker-compose configuration for one-dns --- one-dns.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 one-dns.yaml diff --git a/one-dns.yaml b/one-dns.yaml new file mode 100644 index 0000000..5097e3b --- /dev/null +++ b/one-dns.yaml @@ -0,0 +1,22 @@ +version: '2' +services: + etcd: + image: quay.io/coreos/etcd:v2.3.2 + restart: always + ports: + - "${ETCD_PORT}:${ETCD_PORT}" + volumes: + - "/tmp/data:/data" + command: --listen-client-urls http://0.0.0.0:${ETCD_PORT} --advertise-client-urls http://0.0.0.0:${ETCD_PORT} --data-dir /data + + skydns: + image: skynetservices/skydns:2.5.3a + restart: always + ports: + - "${DNS_PORT}:${DNS_PORT}" + - "${DNS_PORT}:${DNS_PORT}/udp" + links: + - etcd + depends_on: + - etcd + command: -machines http://etcd:${ETCD_PORT} -addr 0.0.0.0:${DNS_PORT} -no-rec