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-08-05 22:30:55 +05:30
image : signoz/alertmanager:0.23.0-0.2
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" ]
2022-08-24 18:58:44 +05:30
ports :
- "8180:8080"
2022-03-22 00:03:20 +05:30
volumes :
- ./prometheus.yml:/root/config/prometheus.yml
- ../dashboards:/root/config/dashboards
2022-03-29 22:59:32 +05:30
- ./data:/var/lib/signoz
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-08-24 18:58:44 +05:30
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
2022-03-22 00:03:20 +05:30
- STORAGE=clickhouse
- GODEBUG=netdns=go
- TELEMETRY_ENABLED=true
2022-08-24 18:58:44 +05:30
- SIGNOZ_LOCAL_DB_PATH=/var/lib/signoz/signoz.db
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-09-26 13:16:14 +05:30
image : signoz/signoz-otel-collector:0.55.1
2022-03-22 00:03:20 +05:30
command : [ "--config=/etc/otel-collector-config.yaml" ]
2022-08-24 15:11:38 +05:30
user : root # required for reading docker container logs
2022-03-22 00:03:20 +05:30
volumes :
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
2022-08-24 15:11:38 +05:30
- /var/lib/docker/containers:/var/lib/docker/containers:ro
2022-07-14 19:36:19 +05:30
environment :
- OTEL_RESOURCE_ATTRIBUTES=host.name=signoz-host,os.type=linux
2022-03-22 00:03:20 +05:30
ports :
- "4317:4317" # OTLP GRPC receiver
restart : always
depends_on :
clickhouse :
condition : service_healthy
otel-collector-metrics :
2022-09-26 13:16:14 +05:30
image : signoz/signoz-otel-collector:0.55.1
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