53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
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:
|
|
- CLICKHOUSE_DB=${CLICKHOUSE_DB}
|
|
- CLICKHOUSE_USER=${CLICKHOUSE_USER}
|
|
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_USER}
|
|
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=${CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT}
|
|
ports:
|
|
- '${CLICKHOUSE_PORT:-8123}:8123'
|
|
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 |