2022-03-22 00:03:20 +05:30
version : "2.4"
services :
clickhouse :
2022-06-23 10:15:21 +05:30
image : clickhouse/clickhouse-server:22.4.5-alpine
2022-06-30 19:20:50 +05:30
tty : true
2022-03-22 00:03:20 +05:30
volumes :
- ./clickhouse-config.xml:/etc/clickhouse-server/config.xml
2022-06-23 10:15:21 +05:30
- ./clickhouse-users.xml:/etc/clickhouse-server/users.xml
- ./clickhouse-storage.xml:/etc/clickhouse-server/config.d/storage.xml
2022-04-06 00:05:05 +05:30
restart : on -failure
logging :
options :
max-size : 50m
max-file : "3"
2022-03-22 00:03:20 +05:30
healthcheck :
# "clickhouse", "client", "-u ${CLICKHOUSE_USER}", "--password ${CLICKHOUSE_PASSWORD}", "-q 'SELECT 1'"
test : [ "CMD" , "wget" , "--spider" , "-q" , "localhost:8123/ping" ]
interval : 30s
timeout : 5s
retries : 3
2022-05-03 15:26:32 +05:30
ports :
2022-06-23 10:15:21 +05:30
- "9000:9000"
- "8123:8123"
2022-03-22 00:03:20 +05:30
alertmanager :
2022-05-06 11:49:49 +05:30
image : signoz/alertmanager:0.23.0-0.1
2022-03-29 22:59:32 +05:30
depends_on :
- query-service
2022-04-06 00:05:05 +05:30
restart : on -failure
2022-03-22 00:03:20 +05:30
command :
2022-06-08 16:03:48 +05:30
- --queryService.url=http://query-service:8085
2022-03-29 22:59:32 +05:30
- --storage.path=/data
2022-03-22 00:03:20 +05:30
# Notes for Maintainers/Contributors who will change Line Numbers of Frontend & Query-Section. Please Update Line Numbers in `./scripts/commentLinesForSetup.sh` & `./CONTRIBUTING.md`
query-service :
image : signoz/query-service:latest
2022-03-29 22:59:32 +05:30
container_name : query-service
2022-03-22 00:03:20 +05:30
command : [ "-config=/root/config/prometheus.yml" ]
volumes :
- ./prometheus.yml:/root/config/prometheus.yml
- ../dashboards:/root/config/dashboards
2022-03-29 22:59:32 +05:30
- ./data:/var/lib/signoz
ports :
- "8180:8080"
2022-03-22 00:03:20 +05:30
environment :
2022-05-06 11:49:49 +05:30
- ClickHouseUrl=tcp://clickhouse:9000/?database=signoz_traces
2022-03-22 00:03:20 +05:30
- STORAGE=clickhouse
- GODEBUG=netdns=go
- TELEMETRY_ENABLED=true
2022-04-06 00:05:05 +05:30
healthcheck :
test : [ "CMD" , "wget" , "--spider" , "-q" , "localhost:8080/api/v1/version" ]
interval : 30s
timeout : 5s
retries : 3
2022-03-22 00:03:20 +05:30
depends_on :
clickhouse :
condition : service_healthy
otel-collector :
2022-06-29 13:38:56 +05:30
image : signoz/otelcontribcol:0.45.1-1.0
2022-03-22 00:03:20 +05:30
command : [ "--config=/etc/otel-collector-config.yaml" ]
volumes :
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports :
- "4317:4317" # OTLP GRPC receiver
mem_limit : 2000m
restart : always
depends_on :
clickhouse :
condition : service_healthy
otel-collector-metrics :
2022-06-29 13:38:56 +05:30
image : signoz/otelcontribcol:0.45.1-1.0
2022-03-22 00:03:20 +05:30
command : [ "--config=/etc/otel-collector-metrics-config.yaml" ]
volumes :
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
depends_on :
clickhouse :
condition : service_healthy
hotrod :
image : jaegertracing/example-hotrod:1.30
container_name : hotrod
logging :
options :
max-size : 50m
max-file : "3"
command : [ "all" ]
environment :
- JAEGER_ENDPOINT=http://otel-collector:14268/api/traces
load-hotrod :
image : "grubykarol/locust:1.2.3-python3.9-alpine3.12"
container_name : load-hotrod
hostname : load-hotrod
environment :
ATTACKED_HOST : http://hotrod:8080
LOCUST_MODE : standalone
NO_PROXY : standalone
TASK_DELAY_FROM : 5
TASK_DELAY_TO : 30
QUIET_MODE : "${QUIET_MODE:-false}"
LOCUST_OPTS : "--headless -u 10 -r 1"
volumes :
- ../../../../deploy/docker/common/locust-scripts:/locust