dockerEnv/docker-compose.yml
2018-11-30 17:18:29 +01:00

85 lines
1.8 KiB
YAML

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
restart: always
container_name: fluentd_elena
volumes:
- ./fluentd/conf:/fluentd/etc
links:
- "influxdb"
ports:
- 24224:24224
environment:
SERVICE_24224_NAME: 'fluentd'
SERVICE_5140_NAME: 'fluentd'
influxdb:
image: influxdb:latest
restart: always
container_name: influxdb_elena
volumes:
- ./storage/influxdb/data:/var/lib/influxdb
environment:
INFLUXDB_DATA_ENGINE: 'tsm1'
INFLUXDB_REPORTING_DISABLED: 'false'
SERVICE_8086_NAME: 'influxdb'
elasticsearch:
image: elasticsearch:6.5.1
expose:
- 9200
ports:
- "9200:9200"
kibana:
image: kibana:6.5.1
links:
- "elasticsearch"
ports:
- "5601:5601"
volumes:
portainer_data: