scmrus
6/4/2016 - 11:37 AM

Docker Compose Consul cluster

Docker Compose Consul cluster

consul:
  image: progrium/consul:latest
  # net: host
  ports:
    - "8400:8400"
    - "8500:8500"
  command: "-server -bootstrap -ui-dir /ui"
registrator:
  command: -resync 30 -internal consul://consul:8500
  image: gliderlabs/registrator:latest
  # net: host
  volumes:
    - "/var/run/docker.sock:/tmp/docker.sock"
  links:
    - consul