VictoriaMetrics/deployment/docker/docker-compose.yml
Aliaksandr Valialkin e3dcfe5851 deployment/docker/docker-compose.yml: use default ports for vminsert and vmselect services
These ports were swapped. Correct default ports are:

- vminsert: -httpListenAddr=:8480, -storageNode=*:8400
- vmselect: -httpListenAddr=:8481, -storageNode=*:8401
2019-07-20 01:20:08 +03:00

65 lines
1.5 KiB
YAML

version: '3.5'
services:
prometheus:
container_name: prometheus
image: prom/prometheus:v2.3.2
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
image: victoriametrics/vmstorage:heads-public-cluster-0-g7abb96b4
ports:
- 8482:8482
- 8400:8400
- 8401:8401
volumes:
- strgdata:/storage
command:
- '--storageDataPath=/storage'
networks:
- docker_net
restart: always
vminsert:
container_name: vminsert
image: victoriametrics/vminsert:heads-public-cluster-0-g7abb96b4
depends_on:
- "vmstorage"
command:
- '--storageNode=vmstorage:8400'
ports:
- 8480:8480
networks:
- docker_net
restart: always
vmselect:
container_name: vmselect
image: victoriametrics/vmselect:heads-public-cluster-0-g7abb96b4
depends_on:
- "vmstorage"
command:
- '--storageNode=vmstorage:8401'
ports:
- 8481:8481
networks:
- docker_net
restart: always
volumes:
promdata: {}
strgdata: {}
networks:
docker_net:
driver: bridge