009 add docker compose
This commit is contained in:
+25
-1
@@ -1,6 +1,25 @@
|
||||
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:0.82.0
|
||||
image: signoz/signoz:latest
|
||||
container_name: signoz
|
||||
environment:
|
||||
G2S_ALERTS__TELEGRAM_BOT_TOKEN: ${G2S_ALERTS__TELEGRAM_BOT_TOKEN:-}
|
||||
@@ -9,5 +28,10 @@ services:
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user