initial docker-compose configuration for one-dns

master
Justin Riley 2016-07-13 23:46:26 -04:00
parent 07a325cdd2
commit 51446bb00b
1 changed files with 22 additions and 0 deletions

22
one-dns.yaml Normal file
View File

@ -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