2023-06-20 22:18:52 +00:00
|
|
|
services:
|
2024-09-25 16:33:26 +00:00
|
|
|
# meta service will be ignored by compose
|
|
|
|
.victorialogs:
|
2024-09-27 11:58:52 +00:00
|
|
|
image: docker.io/victoriametrics/victoria-logs:v0.31.0-victorialogs
|
2023-06-20 22:18:52 +00:00
|
|
|
command:
|
|
|
|
- -storageDataPath=/vlogs
|
|
|
|
- -loggerFormat=json
|
2024-09-03 15:43:26 +00:00
|
|
|
- -syslog.listenAddr.tcp=0.0.0.0:8094
|
2024-09-25 16:33:26 +00:00
|
|
|
deploy:
|
|
|
|
replicas: 0
|
2023-06-20 22:18:52 +00:00
|
|
|
healthcheck:
|
2024-09-03 15:43:26 +00:00
|
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:9428/health"]
|
2023-06-20 22:18:52 +00:00
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
2024-09-25 16:33:26 +00: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-20 22:18:52 +00:00
|
|
|
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
|
|
|
|
- -loggerFormat=json
|
|
|
|
volumes:
|
2024-09-25 16:33:26 +00:00
|
|
|
- victoriametrics:/vmsingle
|
2023-06-20 22:18:52 +00:00
|
|
|
healthcheck:
|
2024-09-03 15:43:26 +00:00
|
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8428/health"]
|
2023-06-20 22:18:52 +00:00
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
volumes:
|
2024-09-25 16:33:26 +00:00
|
|
|
victorialogs:
|
|
|
|
victorialogs-2:
|
|
|
|
victoriametrics:
|