Skip to content

Commit

Permalink
added v2
Browse files Browse the repository at this point in the history
  • Loading branch information
gruimed committed Nov 18, 2024
1 parent ff0107e commit 194b595
Showing 1 changed file with 182 additions and 0 deletions.
182 changes: 182 additions & 0 deletions docker/compose.v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@

services:
web:
ports:
- "80:80"
image: nginx:1.27.2
hostname: web
volumes:
- ./Nginx/nginx-config.conf:/etc/nginx/conf.d/default.conf
depends_on:
php-composer:
condition: service_completed_successfully
php-fpm:
condition: service_started
php-rr:
condition: service_started


php-fpm:
image: php:8.3-fpm-alpine
hostname: phpfpm
volumes:
- ./www:/usr/share/www
depends_on:
php-composer:
condition: service_completed_successfully

php-rr:
build:
context: RoadRunner
dockerfile: Dockerfile.v1
hostname: phprr
volumes:
- ./www:/var/www
working_dir: /var/www
command: sh -c "rr serve -c v1.rr.yaml"
depends_on:
php-composer:
condition: service_completed_successfully

php-composer:
image: composer/composer:latest
volumes:
- ./www:/app
command: /bin/bash -c "env COMPOSER=composer.v1.json composer update --ignore-platform-reqs"

echo-server:
build:
context: EchoService
dockerfile: Dockerfile
hostname: echo-service

# SigNoz {{{
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
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOO_AUTOPURGE_INTERVAL=1

clickhouse:
image: clickhouse/clickhouse-server:24.1.2-alpine
depends_on:
- zookeeper-1
healthcheck:
test:
[
"CMD",
"wget",
"--spider",
"-q",
"0.0.0.0:8123/ping"
]

container_name: signoz-clickhouse
hostname: clickhouse
ports:
- "9000:9000"
- "8123:8123"
- "9181:9181"
volumes:
- ./signoz/clickhouse-config.xml:/etc/clickhouse-server/config.xml
- ./signoz/clickhouse-users.xml:/etc/clickhouse-server/users.xml
- ./signoz/custom-function.xml:/etc/clickhouse-server/custom-function.xml
- ./signoz/clickhouse-cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
- ./data/clickhouse/:/var/lib/clickhouse/
- ./signoz/user_scripts:/var/lib/clickhouse/user_scripts/


query-service:
image: signoz/query-service:${DOCKER_TAG:-0.49.1}
container_name: signoz-query-service
command:
[
"-config=/root/config/prometheus.yml"
]
volumes:
- ./signoz/prometheus.yml:/root/config/prometheus.yml
- ../dashboards:/root/config/dashboards
- ./data/signoz/:/var/lib/signoz/
environment:
- ClickHouseUrl=tcp://clickhouse:9000
- SIGNOZ_LOCAL_DB_PATH=/var/lib/signoz/signoz.db
- DASHBOARDS_PATH=/root/config/dashboards
- STORAGE=clickhouse
- GODEBUG=netdns=go
- TELEMETRY_ENABLED=true
- DEPLOYMENT_TYPE=docker-standalone-amd
restart: on-failure
healthcheck:
test:
[
"CMD",
"wget",
"--spider",
"-q",
"localhost:8080/api/v1/health"
]
depends_on:
clickhouse:
condition: service_healthy

signoz-frontend:
image: signoz/frontend:${DOCKER_TAG:-0.49.1}
container_name: signoz-frontend
restart: on-failure
depends_on:
- query-service
ports:
- "3301:3301"
volumes:
- ./signoz/nginx-config.conf:/etc/nginx/conf.d/default.conf

otel-collector-migrator:
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.102.2}
container_name: otel-migrator
command:
- "--dsn=tcp://clickhouse:9000"
depends_on:
clickhouse:
condition: service_healthy
otel-collector:
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.102.2}
container_name: signoz-otel-collector
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"
]
user: root # required for reading docker container logs
volumes:
- ./signoz/otel-collector-config.yaml:/etc/otel-collector-config.yaml
- ./signoz/otel-collector-opamp-config.yaml:/etc/manager-config.yaml
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /:/hostfs:ro
environment:
- OTEL_RESOURCE_ATTRIBUTES=host.name=signoz-host,os.type=linux
- DOCKER_MULTI_NODE_CLUSTER=false
- LOW_CARDINAL_EXCEPTION_GROUPING=false
restart: on-failure
depends_on:
clickhouse:
condition: service_healthy
otel-collector-migrator:
condition: service_completed_successfully
query-service:
condition: service_healthy

# SigNoz }}}


0 comments on commit 194b595

Please sign in to comment.