mirror of
https://github.com/ferdzo/iotDashboard.git
synced 2026-04-05 17:16:26 +00:00
Migration to UV, introducing db_write, mqtt_ingestion, db_migrations, half working prototype.
This commit is contained in:
26
services/db_write/.env.example
Normal file
26
services/db_write/.env.example
Normal file
@@ -0,0 +1,26 @@
|
||||
# Redis Configuration
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_DB=0
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# Database Configuration (PostgreSQL/TimescaleDB)
|
||||
DATABASE_URL=postgresql://user:password@localhost:5432/iot_dashboard
|
||||
|
||||
# Consumer Configuration
|
||||
CONSUMER_GROUP_NAME=db_writer
|
||||
CONSUMER_NAME=worker-01
|
||||
BATCH_SIZE=100
|
||||
BATCH_TIMEOUT_SEC=5
|
||||
PROCESSING_INTERVAL_SEC=1
|
||||
|
||||
# Stream Configuration
|
||||
STREAM_PATTERN=mqtt_stream:*
|
||||
DEAD_LETTER_STREAM=mqtt_stream:failed
|
||||
|
||||
# Database Table Configuration
|
||||
TABLE_NAME=sensor_readings
|
||||
ENABLE_TIMESCALE=false
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL=INFO
|
||||
Reference in New Issue
Block a user