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-11-12 19:15:55 +01:00
|
|
|
image: docker.io/victoriametrics/victoria-logs:v1.0.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-10-27 20:36:33 +01:00
|
|
|
- -journald.streamFields=_HOSTNAME,_SYSTEMD_UNIT,_PID
|
|
|
|
- -journald.ignoreFields=MESSAGE_ID,INVOCATION_ID,USER_INVOCATION_ID,
|
|
|
|
- -journald.ignoreFields=_BOOT_ID,_MACHINE_ID,_SYSTEMD_INVOCATION_ID,_STREAM_ID,_UID
|
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-11-05 16:52:35 +01:00
|
|
|
dd-logs:
|
2024-11-18 14:56:32 +01:00
|
|
|
image: docker.io/victoriametrics/vmauth:v1.106.1
|
2024-11-05 16:52:35 +01:00
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- ./:/etc/vmauth
|
|
|
|
command: -auth.config=/etc/vmauth/vmauth.yaml
|
|
|
|
|
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:
|