mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
3df920c60d
### Describe Your Changes Use fluentd logging driver in examples to have enriched data in VictoriaLogs ### Checklist The following checks are **mandatory**: - [ ] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/).
30 lines
735 B
YAML
30 lines
735 B
YAML
include:
|
|
- ../compose.yml
|
|
services:
|
|
fluentd:
|
|
build: .
|
|
volumes:
|
|
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
|
- ${PWD}/fluent.conf:/fluentd/etc/fluent.conf
|
|
depends_on: [victorialogs]
|
|
ports:
|
|
- "5140:5140"
|
|
- "24224:24224"
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-z", "-n", "-v", "127.0.0.1", "24224"]
|
|
start_period: 3s
|
|
nginx:
|
|
image: nginx:1.27
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost"]
|
|
start_period: 3s
|
|
ports:
|
|
- "8080:80"
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
fluentd-address: 127.0.0.1:24224
|
|
labels: com.docker.compose.service
|
|
depends_on:
|
|
fluentd:
|
|
condition: service_healthy
|