version: '2' services: consul: image: consul restart: always container_name: consul_elena command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn -datacenter dev environment: SERVICE_8400_NAME: consul SERVICE_8500_NAME: consul SERVICE_8600_NAME: consul SERVICE_8301_NAME: consul SERVICE_8300_NAME: consul SERVICE_8302_NAME: consul ports: - "8400:8400" - "8500:8500" - "8600:8600/udp" registrator: restart: always container_name: registrator_elena depends_on: - consul image: gliderlabs/registrator:master command: -internal consul://consul:8500 volumes: - /var/run/docker.sock:/tmp/docker.sock links: - consul environment: SERVICE_NAME: registrator portainer: restart: always container_name: portainer_elena image: portainer/portainer command: -H unix:///var/run/docker.sock volumes: - /var/run/docker.sock:/var/run/docker.sock - portainer_data:/data fluentd: build: ./fluentd container_name: exen-fluentd volumes: - ./fluentd/conf:/fluentd/etc links: - "exen-influxdb" ports: - 24224:24224 environment: SERVICE_24224_NAME: 'fluentd' SERVICE_5140_NAME: 'fluentd' influxdb: image: influxdb:latest container_name: exen-influxdb volumes: - ./influxdb/data:/var/lib/influxdb environment: INFLUXDB_DATA_ENGINE: 'tsm1' INFLUXDB_REPORTING_DISABLED: 'false' SERVICE_8086_NAME: 'influxdb' volumes: portainer_data: