Scaffold repo: infra docker-compose, service layout, README
Sets up the microservice home-automation platform skeleton: docker-compose for mosquitto/postgres/clickhouse/redis/rabbitmq, per-service README stubs describing responsibilities, and top-level README with architecture/stack. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
# --- PostgreSQL (users, zones, devices, device_types, automation_rules) ---
|
||||
POSTGRES_HOST=postgres
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DB=home_automation
|
||||
POSTGRES_USER=home_automation
|
||||
POSTGRES_PASSWORD=change_me
|
||||
|
||||
# --- ClickHouse (telemetry, time-series) ---
|
||||
CLICKHOUSE_HOST=clickhouse
|
||||
CLICKHOUSE_HTTP_PORT=8123
|
||||
CLICKHOUSE_NATIVE_PORT=9000
|
||||
CLICKHOUSE_DB=telemetry
|
||||
CLICKHOUSE_USER=default
|
||||
CLICKHOUSE_PASSWORD=change_me
|
||||
|
||||
# --- Redis (device shadow: desired/reported state, status, last_seen) ---
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# --- RabbitMQ (async events between Go services) ---
|
||||
RABBITMQ_HOST=rabbitmq
|
||||
RABBITMQ_PORT=5672
|
||||
RABBITMQ_MANAGEMENT_PORT=15672
|
||||
RABBITMQ_USER=home_automation
|
||||
RABBITMQ_PASSWORD=change_me
|
||||
|
||||
# --- Mosquitto (MQTT broker, device <-> ingest/device-control) ---
|
||||
MQTT_HOST=mosquitto
|
||||
MQTT_PORT=1883
|
||||
|
||||
# --- device-control-service (gRPC) ---
|
||||
DEVICE_CONTROL_GRPC_PORT=50051
|
||||
|
||||
# --- Laravel app (stage 2) ---
|
||||
APP_KEY=
|
||||
APP_URL=http://localhost:8000
|
||||
Reference in New Issue
Block a user