2024-09-26 12:47:00 +03:00
|
|
|
services:
|
|
|
|
grafana:
|
|
|
|
image: grafana/grafana:latest
|
|
|
|
volumes:
|
|
|
|
- grafana_data:/var/lib/grafana
|
|
|
|
depends_on:
|
|
|
|
- clickhouse
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
labels:
|
|
|
|
traefik.enable: "true"
|
|
|
|
traefik.http.routers.grafana.entrypoints: web
|
|
|
|
traefik.http.routers.grafana.rule: 'Host(`grafana.test`)'
|
|
|
|
traefik.http.services.grafana.loadbalancer.server.port: 3000
|
|
|
|
clickhouse:
|
|
|
|
image: clickhouse/clickhouse-server:24
|
|
|
|
environment:
|
2024-09-26 12:54:26 +03:00
|
|
|
- CLICKHOUSE_DB=${CLICKHOUSE_DB}
|
|
|
|
- CLICKHOUSE_USER=${CLICKHOUSE_USER}
|
|
|
|
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_USER}
|
|
|
|
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=${CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT}
|
2024-09-26 12:47:00 +03:00
|
|
|
ports:
|
2024-09-26 12:54:26 +03:00
|
|
|
- '${CLICKHOUSE_PORT:-8123}:8123'
|
2024-09-26 12:47:00 +03:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 262144
|
|
|
|
hard: 262144
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_NICE
|
|
|
|
- IPC_LOCK
|
|
|
|
healthcheck:
|
|
|
|
test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
volumes:
|
|
|
|
- clickhouse_data:/var/lib/clickhouse
|
|
|
|
vector:
|
|
|
|
image: timberio/vector:latest-alpine
|
|
|
|
ports:
|
|
|
|
- '8686:8686'
|
|
|
|
depends_on:
|
|
|
|
- clickhouse
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
- ./files/vector.yaml:/etc/vector/vector.yaml:ro
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
clickhouse_data:
|
|
|
|
driver: local
|
|
|
|
grafana_data:
|
|
|
|
driver: local
|