2023-06-21 00:18:52 +02:00
|
|
|
services:
|
2024-09-25 18:33:26 +02:00
|
|
|
# meta service will be ignored by compose
|
|
|
|
.victorialogs:
|
2024-10-08 12:30:25 +02:00
|
|
|
image: docker.io/victoriametrics/victoria-logs:v0.34.0-victorialogs
|
2023-06-21 00:18:52 +02:00
|
|
|
command:
|
|
|
|
- -storageDataPath=/vlogs
|
|
|
|
- -loggerFormat=json
|
2024-09-03 17:43:26 +02:00
|
|
|
- -syslog.listenAddr.tcp=0.0.0.0:8094
|
2024-09-25 18:33:26 +02:00
|
|
|
deploy:
|
|
|
|
replicas: 0
|
2023-06-21 00:18:52 +02:00
|
|
|
healthcheck:
|
2024-09-03 17:43:26 +02:00
|
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:9428/health"]
|
2023-06-21 00:18:52 +02:00
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
2024-09-25 18:33:26 +02:00
|
|
|
victorialogs:
|
|
|
|
extends: .victorialogs
|
|
|
|
ports:
|
|
|
|
- '9428:9428'
|
|
|
|
volumes:
|
|
|
|
- victorialogs:/vlogs
|
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
|
|
|
|
# second replica is needed for HA setup and its replica count is set to 1 in compose-ha.yaml file
|
|
|
|
victorialogs-2:
|
|
|
|
extends: .victorialogs
|
|
|
|
ports:
|
|
|
|
- '9429:9428'
|
|
|
|
volumes:
|
|
|
|
- victorialogs-2:/vlogs
|
|
|
|
deploy:
|
|
|
|
replicas: 0
|
|
|
|
|
2023-06-21 00:18:52 +02:00
|
|
|
victoriametrics:
|
2023-06-21 14:15:42 +02:00
|
|
|
image: victoriametrics/victoria-metrics:latest
|
2023-06-21 00:18:52 +02:00
|
|
|
ports:
|
|
|
|
- '8428:8428'
|
|
|
|
command:
|
|
|
|
- -storageDataPath=/vmsingle
|
|
|
|
- -loggerFormat=json
|
|
|
|
volumes:
|
2024-09-25 18:33:26 +02:00
|
|
|
- victoriametrics:/vmsingle
|
2023-06-21 00:18:52 +02:00
|
|
|
healthcheck:
|
2024-09-03 17:43:26 +02:00
|
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8428/health"]
|
2023-06-21 00:18:52 +02:00
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
volumes:
|
2024-09-25 18:33:26 +02:00
|
|
|
victorialogs:
|
|
|
|
victorialogs-2:
|
|
|
|
victoriametrics:
|