Created
January 7, 2025 22:08
-
-
Save joshleecreates/b4dc8445dd01e4c7f1c8b797cc9ab055 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
name: coroot | |
volumes: | |
prometheus_data: {} | |
clickhouse_data: {} | |
clickhouse_logs: {} | |
coroot_data: {} | |
node_agent_data: {} | |
cluster_agent_data: {} | |
services: | |
coroot: | |
restart: always | |
image: ghcr.io/coroot/coroot | |
pull_policy: always | |
volumes: | |
- coroot_data:/data | |
ports: | |
- 8081:8080 | |
command: | |
- '--data-dir=/data' | |
- '--bootstrap-prometheus-url=http://prometheus:9090' | |
- '--bootstrap-refresh-interval=15s' | |
- '--bootstrap-clickhouse-address=clickhouse:9000' | |
depends_on: | |
- clickhouse | |
- prometheus | |
node-agent: | |
restart: always | |
image: ghcr.io/coroot/coroot-node-agent | |
pull_policy: always | |
privileged: true | |
pid: "host" | |
volumes: | |
- /sys/kernel/tracing:/sys/kernel/tracing | |
- /sys/kernel/debug:/sys/kernel/debug | |
- /sys/fs/cgroup:/host/sys/fs/cgroup | |
- node_agent_data:/data | |
command: | |
- '--collector-endpoint=http://coroot:8080' | |
- '--cgroupfs-root=/host/sys/fs/cgroup' | |
- '--wal-dir=/data' | |
cluster-agent: | |
restart: always | |
image: ghcr.io/coroot/coroot-cluster-agent | |
pull_policy: always | |
volumes: | |
- cluster_agent_data:/data | |
command: | |
- '--coroot-url=http://coroot:8080' | |
- '--metrics-scrape-interval=15s' | |
- '--metrics-wal-dir=/data' | |
depends_on: | |
- coroot | |
prometheus: | |
restart: always | |
image: prom/prometheus:v2.45.4 | |
volumes: | |
- prometheus_data:/prometheus | |
command: | |
- '--config.file=/etc/prometheus/prometheus.yml' | |
- '--storage.tsdb.path=/prometheus' | |
- '--web.console.libraries=/usr/share/prometheus/console_libraries' | |
- '--web.console.templates=/usr/share/prometheus/consoles' | |
- '--web.enable-lifecycle' | |
- '--web.enable-remote-write-receiver' | |
ports: | |
- '127.0.0.1:9091:9090' | |
clickhouse: | |
restart: always | |
image: clickhouse/clickhouse-server:24.3 | |
volumes: | |
- clickhouse_data:/var/lib/clickhouse | |
- clickhouse_logs:/var/log/clickhouse-server | |
ports: | |
- '127.0.0.1:9001:9000' | |
ulimits: | |
nofile: | |
soft: 262144 | |
hard: 262144 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment