-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
32 lines (27 loc) · 906 Bytes
/
.env.example
File metadata and controls
32 lines (27 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copy to .env and set values. Not executable.
# shellcheck disable=all
# Kafka
KAFKA_BOOTSTRAP_SERVERS=localhost:9092
KAFKA_TOPIC_TASKS=taskqueue.tasks
KAFKA_TOPIC_DLQ=taskqueue.dlq
KAFKA_CONSUMER_GROUP=taskqueue-workers
# PostgreSQL
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=taskqueue
POSTGRES_PASSWORD=taskqueue_secret
POSTGRES_DB=taskqueue
# Redis
REDIS_URL=redis://localhost:6379/0
# gRPC API
GRPC_HOST=0.0.0.0
GRPC_PORT=50051
# Observability (when using compose, use 9095/9096 so Prometheus container can use 9090)
PROMETHEUS_PORT=9095
# OTLP: 4317 = gRPC (traces/metrics), 4318 = HTTP (logs). Set to :4318 to ship logs to collector → Loki.
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
OTEL_SERVICE_NAME=taskqueue-api
LOKI_URL=http://localhost:3100
# Worker (set PROMETHEUS_PORT=9096 in workers/.env so API and worker don't clash)
WORKER_CONCURRENCY=4
WORKER_MAX_RETRIES=5