VictoriaMetrics/deployment/docker/docker-compose.yml

71 lines
1.5 KiB
YAML
Raw Normal View History

2019-05-22 23:23:23 +02:00
version: '3.5'
services:
vmagent:
container_name: vmagent
image: victoriametrics/vmagent
2019-05-22 23:23:23 +02:00
depends_on:
- "vminsert"
2019-05-22 23:23:23 +02:00
ports:
- 8429:8429
2019-05-22 23:23:23 +02:00
volumes:
- vmagentdata:/vmagentdata
2019-05-22 23:23:23 +02:00
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--promscrape.config=/etc/prometheus/prometheus.yml'
- '--remoteWrite.url=http://vminsert:8480/insert/0/prometheus/'
2019-05-22 23:23:23 +02:00
restart: always
grafana:
container_name: grafana
image: grafana/grafana:7.1.1
depends_on:
- "vmselect"
ports:
- 3000:3000
restart: always
volumes:
- grafanadata:/var/lib/grafana
- ./provisioning/:/etc/grafana/provisioning/
- ./../../dashboards/victoriametrics.json:/var/lib/grafana/dashboards/vm.json
- ./../../dashboards/vmagent.json:/var/lib/grafana/dashboards/vmagent.json
2019-05-22 23:23:23 +02:00
vmstorage:
container_name: vmstorage
image: victoriametrics/vmstorage
2019-05-22 23:23:23 +02:00
ports:
- 8482
- 8400
- 8401
2019-05-22 23:23:23 +02:00
volumes:
- strgdata:/storage
command:
- '--storageDataPath=/storage'
restart: always
vminsert:
container_name: vminsert
image: victoriametrics/vminsert
2019-05-22 23:23:23 +02:00
depends_on:
- "vmstorage"
command:
- '--storageNode=vmstorage:8400'
ports:
- 8480
2019-05-22 23:23:23 +02:00
restart: always
vmselect:
container_name: vmselect
image: victoriametrics/vmselect
2019-05-22 23:23:23 +02:00
depends_on:
- "vmstorage"
2019-05-22 23:23:23 +02:00
command:
- '--storageNode=vmstorage:8401'
ports:
- 8481:8481
restart: always
2019-05-22 23:23:23 +02:00
volumes:
vmagentdata: {}
2019-05-22 23:23:23 +02:00
strgdata: {}
grafanadata: {}