mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
version: '3.5'
|
|
services:
|
|
prometheus:
|
|
container_name: prometheus
|
|
image: prom/prometheus:v2.14.0
|
|
depends_on:
|
|
- "vminsert"
|
|
- "vmselect"
|
|
ports:
|
|
- 9090:9090
|
|
volumes:
|
|
- promdata:/prometheus
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
restart: always
|
|
|
|
grafana:
|
|
container_name: grafana
|
|
image: grafana/grafana:6.4.4
|
|
entrypoint: >
|
|
/bin/sh -c "
|
|
cd /var/lib/grafana &&
|
|
mkdir -p dashboards &&
|
|
sed 's/$${DS_PROMETHEUS}/Prometheus/g' vm.json > dashboards/vm.json &&
|
|
/run.sh"
|
|
depends_on:
|
|
- "prometheus"
|
|
ports:
|
|
- 3000:3000
|
|
restart: always
|
|
volumes:
|
|
- grafanadata:/var/lib/grafana
|
|
- ./provisioning/:/etc/grafana/provisioning/
|
|
- ./provisioning/dashboards/:/var/lib/grafana/dashboards
|
|
- ./../../dashboards/victoriametrics.json:/var/lib/grafana/vm.json
|
|
|
|
vmstorage:
|
|
container_name: vmstorage
|
|
image: victoriametrics/vmstorage:v1.29.2-cluster
|
|
ports:
|
|
- 8482
|
|
- 8400
|
|
- 8401
|
|
volumes:
|
|
- strgdata:/storage
|
|
command:
|
|
- '--storageDataPath=/storage'
|
|
restart: always
|
|
|
|
vminsert:
|
|
container_name: vminsert
|
|
image: victoriametrics/vminsert:v1.29.2-cluster
|
|
depends_on:
|
|
- "vmstorage"
|
|
command:
|
|
- '--storageNode=vmstorage:8400'
|
|
ports:
|
|
- 8480
|
|
restart: always
|
|
|
|
vmselect:
|
|
container_name: vmselect
|
|
image: victoriametrics/vmselect:v1.29.2-cluster
|
|
depends_on:
|
|
- "vmstorage"
|
|
command:
|
|
- '--storageNode=vmstorage:8401'
|
|
ports:
|
|
- 8481:8481
|
|
restart: always
|
|
|
|
volumes:
|
|
promdata: {}
|
|
strgdata: {}
|
|
grafanadata: {}
|