2022-08-23 15:23:37 +05:30
version : "2.4"
2024-10-07 14:54:50 +02:00
include :
- test-app-docker-compose.yaml
2022-08-23 15:23:37 +05:30
services :
2023-10-19 20:01:58 +05:30
zookeeper-1 :
image : bitnami/zookeeper:3.7.1
container_name : signoz-zookeeper-1
hostname : zookeeper-1
user : root
ports :
- "2181:2181"
- "2888:2888"
- "3888:3888"
volumes :
- ./data/zookeeper-1:/bitnami/zookeeper
environment :
- ZOO_SERVER_ID=1
# - ZOO_SERVERS=0.0.0.0:2888:3888,zookeeper-2:2888:3888,zookeeper-3:2888:3888
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOO_AUTOPURGE_INTERVAL=1
2022-08-23 15:23:37 +05:30
clickhouse :
2024-02-06 18:53:50 +05:30
image : clickhouse/clickhouse-server:24.1.2-alpine
2023-08-07 21:17:53 +05:30
container_name : signoz-clickhouse
2022-08-23 15:23:37 +05:30
# ports:
# - "9000:9000"
# - "8123:8123"
tty : true
volumes :
- ./clickhouse-config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse-users.xml:/etc/clickhouse-server/users.xml
2023-10-19 20:01:58 +05:30
- ./custom-function.xml:/etc/clickhouse-server/custom-function.xml
- ./clickhouse-cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
2022-08-23 15:23:37 +05:30
# - ./clickhouse-storage.xml:/etc/clickhouse-server/config.d/storage.xml
- ./data/clickhouse/:/var/lib/clickhouse/
2023-10-19 20:01:58 +05:30
- ./user_scripts:/var/lib/clickhouse/user_scripts/
2022-08-23 15:23:37 +05:30
restart : on -failure
logging :
options :
max-size : 50m
max-file : "3"
healthcheck :
# "clickhouse", "client", "-u ${CLICKHOUSE_USER}", "--password ${CLICKHOUSE_PASSWORD}", "-q 'SELECT 1'"
2024-12-28 01:07:49 +05:30
test : [ "CMD" , "wget" , "--spider" , "-q" , "0.0.0.0:8123/ping" ]
2022-08-23 15:23:37 +05:30
interval : 30s
timeout : 5s
retries : 3
alertmanager :
2023-08-07 21:17:53 +05:30
container_name : signoz-alertmanager
2024-10-10 15:34:29 +05:30
image : signoz/alertmanager:0.23.7
2022-08-23 15:23:37 +05:30
volumes :
- ./data/alertmanager:/data
depends_on :
query-service :
condition : service_healthy
restart : on -failure
command :
- --queryService.url=http://query-service:8085
- --storage.path=/data
2023-10-20 12:37:45 +05:30
otel-collector-migrator :
2024-12-28 01:07:49 +05:30
image : signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.18}
2023-10-20 12:37:45 +05:30
container_name : otel-migrator
command :
2024-12-28 01:07:49 +05:30
- "sync"
2023-10-20 12:37:45 +05:30
- "--dsn=tcp://clickhouse:9000"
2024-12-28 01:07:49 +05:30
- "--up="
2023-10-20 12:37:45 +05:30
depends_on :
clickhouse :
condition : service_healthy
2024-12-28 01:07:49 +05:30
# clickhouse-2:
# condition: service_healthy
# clickhouse-3:
# condition: service_healthy
2022-08-23 15:23:37 +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`
otel-collector :
2023-08-07 21:17:53 +05:30
container_name : signoz-otel-collector
2024-12-28 01:07:49 +05:30
image : signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.18}
command : [ "--config=/etc/otel-collector-config.yaml" , "--manager-config=/etc/manager-config.yaml" , "--copy-path=/var/tmp/collector-config.yaml" , "--feature-gates=-pkg.translator.prometheus.NormalizeName" ]
2022-08-23 15:23:37 +05:30
# user: root # required for reading docker container logs
volumes :
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
2023-10-19 20:01:58 +05:30
- ./otel-collector-opamp-config.yaml:/etc/manager-config.yaml
2024-08-02 16:06:21 +05:30
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /:/hostfs:ro
2022-08-23 15:23:37 +05:30
environment :
- OTEL_RESOURCE_ATTRIBUTES=host.name=signoz-host,os.type=linux
ports :
# - "1777:1777" # pprof extension
2023-08-07 21:17:53 +05:30
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
2022-08-23 15:23:37 +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
# - "55678:55678" # OpenCensus receiver
# - "55679:55679" # zPages extension
restart : on -failure
depends_on :
clickhouse :
condition : service_healthy
2023-10-20 12:37:45 +05:30
otel-collector-migrator :
condition : service_completed_successfully
2023-10-19 20:01:58 +05:30
query-service :
condition : service_healthy
2023-08-07 21:17:53 +05:30
logspout :
image : "gliderlabs/logspout:v3.2.14"
container_name : signoz-logspout
volumes :
- /etc/hostname:/etc/host_hostname:ro
- /var/run/docker.sock:/var/run/docker.sock
command : syslog+tcp://otel-collector:2255
depends_on :
- otel-collector
restart : on -failure