2021-06-03 20:54:41 +05:30
version : "2.4"
services :
clickhouse :
2022-06-23 10:15:21 +05:30
image : clickhouse/clickhouse-server:22.4.5-alpine
2022-04-06 00:05:05 +05:30
# ports:
2022-05-03 23:59:29 +05:30
# - "9000:9000"
# - "8123:8123"
2022-06-30 19:20:50 +05:30
tty : true
2022-01-27 22:34:26 +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-01-27 22:34:26 +05:30
- ./data/clickhouse/:/var/lib/clickhouse/
2022-03-21 20:43:43 +05:30
restart : on -failure
2022-04-06 00:05:05 +05:30
logging :
options :
max-size : 50m
max-file : "3"
2022-01-27 22:34:26 +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
2021-06-03 20:54:41 +05:30
2021-11-22 16:15:58 +05:30
alertmanager :
2022-08-05 22:30:55 +05:30
image : signoz/alertmanager:0.23.0-0.2
2021-11-22 16:15:58 +05:30
volumes :
- ./data/alertmanager:/data
2022-03-28 21:01:57 +05:30
depends_on :
2022-04-06 00:05:05 +05:30
query-service :
condition : service_healthy
restart : on -failure
2021-11-22 16:15:58 +05:30
command :
2022-06-08 12:22:25 +05:30
- --queryService.url=http://query-service:8085
2022-03-29 22:59:32 +05:30
- --storage.path=/data
2021-11-22 16:15:58 +05:30
2022-02-08 10:27:52 +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`
2021-06-03 20:54:41 +05:30
query-service :
2022-09-13 22:46:00 +05:30
image : signoz/query-service:0.11.1
2021-06-03 20:54:41 +05:30
container_name : query-service
2021-08-29 10:28:40 +05:30
command : [ "-config=/root/config/prometheus.yml" ]
2022-03-28 21:44:40 +05:30
# ports:
# - "6060:6060" # pprof port
# - "8080:8080" # query-service port
2021-08-29 10:28:40 +05:30
volumes :
- ./prometheus.yml:/root/config/prometheus.yml
2021-09-02 13:18:47 +05:30
- ../dashboards:/root/config/dashboards
2021-09-28 18:14:12 +05:30
- ./data/signoz/:/var/lib/signoz/
2021-06-03 20:54:41 +05:30
environment :
2022-05-03 11:20:57 +05:30
- ClickHouseUrl=tcp://clickhouse:9000/?database=signoz_traces
2022-08-24 18:58:44 +05:30
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
- SIGNOZ_LOCAL_DB_PATH=/var/lib/signoz/signoz.db
2021-06-03 20:54:41 +05:30
- STORAGE=clickhouse
2021-09-24 16:51:13 +05:30
- GODEBUG=netdns=go
2022-01-26 21:40:44 +05:30
- TELEMETRY_ENABLED=true
2022-03-21 20:39:53 +05:30
- DEPLOYMENT_TYPE=docker-standalone-amd
restart : on -failure
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
2021-06-03 20:54:41 +05:30
depends_on :
clickhouse :
condition : service_healthy
2022-01-27 22:34:26 +05:30
2021-06-03 20:54:41 +05:30
frontend :
2022-09-13 22:46:00 +05:30
image : signoz/frontend:0.11.1
2021-06-03 20:54:41 +05:30
container_name : frontend
2022-04-06 00:52:48 +05:30
restart : on -failure
2021-06-03 20:54:41 +05:30
depends_on :
2022-04-06 00:52:48 +05:30
- alertmanager
2021-06-03 20:54:41 +05:30
- query-service
ports :
2022-02-08 22:47:06 +05:30
- "3301:3301"
2021-06-03 20:54:41 +05:30
volumes :
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf
otel-collector :
2022-09-14 00:03:07 +05:30
image : signoz/signoz-otel-collector:0.55.1
2022-03-03 13:23:49 +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
2021-06-03 20:54:41 +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
2021-06-03 20:54:41 +05:30
ports :
2022-07-14 19:36:19 +05:30
# - "1777:1777" # pprof extension
2022-03-21 20:43:43 +05:30
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
2022-07-14 19:36:19 +05:30
# - "8888:8888" # OtelCollector internal metrics
# - "8889:8889" # signoz spanmetrics exposed by the agent
# - "9411:9411" # Zipkin port
# - "13133:13133" # health check extension
# - "14250:14250" # Jaeger gRPC
# - "14268:14268" # Jaeger thrift HTTP
2022-03-21 20:43:43 +05:30
# - "55678:55678" # OpenCensus receiver
2022-07-14 19:36:19 +05:30
# - "55679:55679" # zPages extension
2022-03-21 20:43:43 +05:30
restart : on -failure
2021-06-03 20:54:41 +05:30
depends_on :
clickhouse :
condition : service_healthy
2021-10-20 09:28:47 +05:30
otel-collector-metrics :
2022-09-14 00:03:07 +05:30
image : signoz/signoz-otel-collector:0.55.1
2022-03-03 19:59:55 +05:30
command : [ "--config=/etc/otel-collector-metrics-config.yaml" ]
2021-10-20 09:28:47 +05:30
volumes :
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
2022-07-14 19:36:19 +05:30
# ports:
# - "1777:1777" # pprof extension
# - "8888:8888" # OtelCollector internal metrics
# - "13133:13133" # Health check extension
# - "55679:55679" # zPages extension
2022-03-21 20:43:43 +05:30
restart : on -failure
2021-10-20 09:28:47 +05:30
depends_on :
clickhouse :
condition : service_healthy
2022-01-27 22:34:26 +05:30
2021-06-03 20:54:41 +05:30
hotrod :
2022-05-03 23:59:29 +05:30
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
2021-06-03 20:54:41 +05:30
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 :
2022-01-21 00:31:58 +05:30
- ../common/locust-scripts:/locust