38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
services:
|
|
app:
|
|
image: yusupal1ev/g2s-aggregator:0.0.0
|
|
environment:
|
|
G2S_CONFIG_FILE: /app/config.yaml
|
|
G2S_REPOSITORY__REDIS_DSN: redis://redis:6379/0
|
|
G2S_OBSERVABILITY__OTLP_ENDPOINT: http://signoz:4317
|
|
PYTHONUNBUFFERED: "1"
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- redis
|
|
- signoz
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
command: ["redis-server", "--save", "", "--appendonly", "no"]
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
signoz:
|
|
image: signoz/signoz:latest
|
|
container_name: signoz
|
|
environment:
|
|
G2S_ALERTS__TELEGRAM_BOT_TOKEN: ${G2S_ALERTS__TELEGRAM_BOT_TOKEN:-}
|
|
G2S_ALERTS__TELEGRAM_CHAT_ID: ${G2S_ALERTS__TELEGRAM_CHAT_ID:-}
|
|
SIGNOZ_ALERTS_CONTACT_POINT_FILE: /etc/signoz/alerts/signoz_contact_point_telegram.yaml
|
|
SIGNOZ_ALERTS_RULES_FILE: /etc/signoz/alerts/signoz_alert_rules.yaml
|
|
ports:
|
|
- "3301:3301"
|
|
- "4317:4317"
|
|
volumes:
|
|
- signoz_data:/var/lib/signoz
|
|
- ./infra/alerts:/etc/signoz/alerts:ro
|
|
|
|
volumes:
|
|
signoz_data:
|