Guest User

Untitled

a guest
Apr 14th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.82 KB | None | 0 0
  1. # Where $DOCKER0 == the ip address of the docker0 interface on the docker host
  2. #       $ETH0 == same thing for the eth0 interface
  3. #  
  4. #   I had to patch the code for the UDP anyway : there is a PR waiting for this.
  5. #   I think i got one fix to do before they accept it.
  6. #   In the worst case go on my github account and get the fork i did with the right branch.
  7. #   It works for me.
  8.  
  9. skydns:
  10.     image: crosbymichael/skydns
  11.     dns:
  12.        - $DOCKER0
  13.     ports:
  14.        - $DOCKER0:53:53/udp
  15.         - 8080:8080
  16.     command: "-nameserver 8.8.8.8:53 -domain docker"
  17.  
  18. skydock:
  19.     image: crosbymichael/skydock
  20.     dns:
  21.        - $DOCKER0
  22.     volumes:
  23.        - /var/run/docker.sock:/docker.sock
  24.     environment:
  25.        - SKYDNS_PORT_8080_TCP_ADDR=$ETH0
  26.     command: "-ttl 30 -environment dev -s /docker.sock -domain docker"
Advertisement
Add Comment
Please, Sign In to add comment