2018-06-08 13:59:49 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
consul:
|
|
|
|
image: consul
|
2018-09-29 11:01:06 +00:00
|
|
|
restart: always
|
2018-06-08 14:07:39 +00:00
|
|
|
container_name: consul_elena
|
2018-09-29 21:08:41 +00:00
|
|
|
command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn -datacenter dev
|
2018-06-08 13:59:49 +00:00
|
|
|
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:
|
2018-09-29 11:01:06 +00:00
|
|
|
restart: always
|
2018-06-08 14:07:39 +00:00
|
|
|
container_name: registrator_elena
|
2018-06-08 13:59:49 +00:00
|
|
|
depends_on:
|
|
|
|
- consul
|
|
|
|
image: gliderlabs/registrator:master
|
2018-12-16 12:09:43 +00:00
|
|
|
command: -ttl=120 -ttl-refresh=10 -cleanup=true -resync=10 -internal consul://consul:8500
|
2018-06-08 13:59:49 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock
|
|
|
|
links:
|
|
|
|
- consul
|
|
|
|
environment:
|
2018-12-16 12:09:43 +00:00
|
|
|
|
2018-06-08 13:59:49 +00:00
|
|
|
SERVICE_NAME: registrator
|
|
|
|
|
2018-09-29 11:01:06 +00:00
|
|
|
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
|
2018-12-16 12:09:43 +00:00
|
|
|
- ./storage/portainer:/data
|
2018-09-29 11:01:06 +00:00
|
|
|
|
2018-11-28 17:31:14 +00:00
|
|
|
fluentd:
|
|
|
|
build: ./fluentd
|
2018-11-28 17:35:25 +00:00
|
|
|
restart: always
|
|
|
|
container_name: fluentd_elena
|
2018-11-28 17:31:14 +00:00
|
|
|
volumes:
|
|
|
|
- ./fluentd/conf:/fluentd/etc
|
|
|
|
links:
|
2018-11-30 15:34:52 +00:00
|
|
|
- "influxdb"
|
2018-11-28 17:31:14 +00:00
|
|
|
ports:
|
|
|
|
- 24224:24224
|
|
|
|
environment:
|
2018-12-16 13:47:56 +00:00
|
|
|
SERVICE_24224_NAME: 'fluentd'
|
|
|
|
SERVICE_5140_NAME: 'fluentd'
|
2018-11-28 17:31:14 +00:00
|
|
|
|
|
|
|
influxdb:
|
|
|
|
image: influxdb:latest
|
2018-11-28 17:35:25 +00:00
|
|
|
restart: always
|
|
|
|
container_name: influxdb_elena
|
2018-11-28 17:31:14 +00:00
|
|
|
volumes:
|
2018-11-30 15:34:52 +00:00
|
|
|
- ./storage/influxdb/data:/var/lib/influxdb
|
2018-11-28 17:31:14 +00:00
|
|
|
environment:
|
|
|
|
INFLUXDB_DATA_ENGINE: 'tsm1'
|
|
|
|
INFLUXDB_REPORTING_DISABLED: 'false'
|
|
|
|
SERVICE_8086_NAME: 'influxdb'
|
2018-12-16 13:47:56 +00:00
|
|
|
SERVICE_8086_TAG: 'db'
|
2018-11-28 17:31:14 +00:00
|
|
|
|