68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
|
version: "2.4"
|
||
|
|
||
|
services:
|
||
|
query-service:
|
||
|
hostname: query-service
|
||
|
build:
|
||
|
context: "../../../"
|
||
|
dockerfile: "./pkg/query-service/Dockerfile"
|
||
|
args:
|
||
|
LDFLAGS: ""
|
||
|
TARGETPLATFORM: "${GOOS}/${GOARCH}"
|
||
|
container_name: signoz-query-service
|
||
|
environment:
|
||
|
- ClickHouseUrl=tcp://clickhouse:9000
|
||
|
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
|
||
|
- SIGNOZ_LOCAL_DB_PATH=/var/lib/signoz/signoz.db
|
||
|
- DASHBOARDS_PATH=/root/config/dashboards
|
||
|
- STORAGE=clickhouse
|
||
|
- GODEBUG=netdns=go
|
||
|
- TELEMETRY_ENABLED=true
|
||
|
volumes:
|
||
|
- ./prometheus.yml:/root/config/prometheus.yml
|
||
|
- ../dashboards:/root/config/dashboards
|
||
|
- ./data/signoz/:/var/lib/signoz/
|
||
|
command:
|
||
|
[
|
||
|
"-config=/root/config/prometheus.yml",
|
||
|
# "--prefer-delta=true"
|
||
|
]
|
||
|
ports:
|
||
|
- "6060:6060"
|
||
|
- "8080:8080"
|
||
|
restart: on-failure
|
||
|
healthcheck:
|
||
|
test:
|
||
|
[
|
||
|
"CMD",
|
||
|
"wget",
|
||
|
"--spider",
|
||
|
"-q",
|
||
|
"localhost:8080/api/v1/health"
|
||
|
]
|
||
|
interval: 30s
|
||
|
timeout: 5s
|
||
|
retries: 3
|
||
|
depends_on:
|
||
|
clickhouse:
|
||
|
condition: service_healthy
|
||
|
|
||
|
frontend:
|
||
|
build:
|
||
|
context: "../../../frontend"
|
||
|
dockerfile: "./Dockerfile"
|
||
|
args:
|
||
|
TARGETOS: "${GOOS}"
|
||
|
TARGETPLATFORM: "${GOARCH}"
|
||
|
container_name: signoz-frontend
|
||
|
environment:
|
||
|
- FRONTEND_API_ENDPOINT=http://query-service:8080
|
||
|
restart: on-failure
|
||
|
depends_on:
|
||
|
- alertmanager
|
||
|
- query-service
|
||
|
ports:
|
||
|
- "3301:3301"
|
||
|
volumes:
|
||
|
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf
|