# to use this add docker-compose/consul.override.yml
# to your COMPOSE_FILE var in .env

version: '2.3'
services:
  web:
    links:
      - consul

  consul:
    image: consul:0.7.5
    command: agent -server -client 0.0.0.0 -datacenter canvas-dev -node canvas-consul -bootstrap -ui
    environment:
      GOMAXPROCS: "2"
      VIRTUAL_PORT: 8500
    volumes:
      - consul_data:/consul/data

volumes:
  consul_data: {}
