Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Where $DOCKER0 == the ip address of the docker0 interface on the docker host
- # $ETH0 == same thing for the eth0 interface
- #
- # I had to patch the code for the UDP anyway : there is a PR waiting for this.
- # I think i got one fix to do before they accept it.
- # In the worst case go on my github account and get the fork i did with the right branch.
- # It works for me.
- skydns:
- image: crosbymichael/skydns
- dns:
- - $DOCKER0
- ports:
- - $DOCKER0:53:53/udp
- - 8080:8080
- command: "-nameserver 8.8.8.8:53 -domain docker"
- skydock:
- image: crosbymichael/skydock
- dns:
- - $DOCKER0
- volumes:
- - /var/run/docker.sock:/docker.sock
- environment:
- - SKYDNS_PORT_8080_TCP_ADDR=$ETH0
- command: "-ttl 30 -environment dev -s /docker.sock -domain docker"
Advertisement
Add Comment
Please, Sign In to add comment