2023-06-20 22:18:52 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
vector:
|
|
|
|
image: docker.io/timberio/vector:0.30.0-distroless-static
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: /var/run/docker.sock
|
|
|
|
target: /var/run/docker.sock
|
|
|
|
- type: bind
|
|
|
|
source: /var/lib/docker
|
|
|
|
target: /var/lib/docker
|
|
|
|
- ./vector.toml:/etc/vector/vector.toml:ro
|
|
|
|
user: root
|
|
|
|
ports:
|
|
|
|
- '8686:8686'
|
|
|
|
depends_on:
|
|
|
|
victorialogs:
|
|
|
|
condition: service_healthy
|
|
|
|
victoriametrics:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
victorialogs:
|
2024-06-06 10:27:05 +00:00
|
|
|
image: docker.io/victoriametrics/victoria-logs:v0.18.0-victorialogs
|
2023-06-20 22:18:52 +00:00
|
|
|
volumes:
|
|
|
|
- victorialogs-vector-docker-vl:/vlogs
|
|
|
|
ports:
|
|
|
|
- '9428:9428'
|
|
|
|
command:
|
|
|
|
- -storageDataPath=/vlogs
|
|
|
|
- -loggerFormat=json
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:9428/health"]
|
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
victoriametrics:
|
2023-06-21 12:15:42 +00:00
|
|
|
image: victoriametrics/victoria-metrics:latest
|
2023-06-20 22:18:52 +00:00
|
|
|
ports:
|
|
|
|
- '8428:8428'
|
|
|
|
command:
|
|
|
|
- -storageDataPath=/vmsingle
|
|
|
|
- -promscrape.config=/promscrape.yml
|
|
|
|
- -loggerFormat=json
|
|
|
|
volumes:
|
|
|
|
- victorialogs-vector-docker-vm:/vmsingle
|
|
|
|
- ./scrape.yml:/promscrape.yml
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:8428/health"]
|
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
victorialogs-vector-docker-vl:
|
2023-07-18 06:19:46 +00:00
|
|
|
victorialogs-vector-docker-vm:
|