2019-05-22 21:23:23 +00:00
|
|
|
version: '3.5'
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
|
|
container_name: prometheus
|
2019-10-16 09:39:00 +00:00
|
|
|
image: prom/prometheus:v2.13.0
|
2019-05-22 21:23:23 +00:00
|
|
|
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'
|
|
|
|
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
|
|
|
|
- '--web.console.templates=/usr/share/prometheus/consoles'
|
|
|
|
networks:
|
|
|
|
- docker_net
|
|
|
|
restart: always
|
|
|
|
vmstorage:
|
|
|
|
container_name: vmstorage
|
2019-11-05 16:08:50 +00:00
|
|
|
image: victoriametrics/vmstorage:v1.28.3-cluster
|
2019-05-22 21:23:23 +00:00
|
|
|
ports:
|
|
|
|
- 8482:8482
|
|
|
|
- 8400:8400
|
|
|
|
- 8401:8401
|
|
|
|
volumes:
|
|
|
|
- strgdata:/storage
|
|
|
|
command:
|
|
|
|
- '--storageDataPath=/storage'
|
|
|
|
networks:
|
|
|
|
- docker_net
|
|
|
|
restart: always
|
2019-07-19 22:20:04 +00:00
|
|
|
vminsert:
|
|
|
|
container_name: vminsert
|
2019-11-05 16:08:50 +00:00
|
|
|
image: victoriametrics/vminsert:v1.28.3-cluster
|
2019-05-22 21:23:23 +00:00
|
|
|
depends_on:
|
|
|
|
- "vmstorage"
|
|
|
|
command:
|
|
|
|
- '--storageNode=vmstorage:8400'
|
2019-07-19 22:20:04 +00:00
|
|
|
ports:
|
|
|
|
- 8480:8480
|
2019-05-22 21:23:23 +00:00
|
|
|
networks:
|
|
|
|
- docker_net
|
|
|
|
restart: always
|
2019-07-19 22:20:04 +00:00
|
|
|
vmselect:
|
|
|
|
container_name: vmselect
|
2019-11-05 16:08:50 +00:00
|
|
|
image: victoriametrics/vmselect:v1.28.3-cluster
|
2019-05-22 21:23:23 +00:00
|
|
|
depends_on:
|
2019-07-19 22:20:04 +00:00
|
|
|
- "vmstorage"
|
2019-05-22 21:23:23 +00:00
|
|
|
command:
|
|
|
|
- '--storageNode=vmstorage:8401'
|
|
|
|
ports:
|
|
|
|
- 8481:8481
|
|
|
|
networks:
|
|
|
|
- docker_net
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
promdata: {}
|
|
|
|
strgdata: {}
|
|
|
|
networks:
|
|
|
|
docker_net:
|
|
|
|
driver: bridge
|