Updated feedstack to include weatherdb and weatherapi containers

This commit is contained in:
2026-03-17 16:17:06 +00:00
parent 29cac89fe8
commit 6fcdffd6c4
7 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
- name: weatherdb
driver: postgres
params:
uri: postgres://weatherdb:5432/{{ feedstack_weatherdb_database }}?sslmode=disable
username: {{ feedstack_weatherdb_user }}
password: {{ feedstack_weatherdb_password }}
...

View File

@@ -73,12 +73,22 @@ sinks:
params:
url: nats://nats:4222
exchange: weatherfeeder
- name: weatherdb
driver: postgres
params:
uri: postgres://weatherdb:5432/{{ feedstack_weatherdb_database }}?sslmode=disable
username: {{ feedstack_weatherdb_user }}
password: {{ feedstack_weatherdb_password }}
# optional: route events to this sink
routes:
- sink: nats_weatherfeeder
kinds: ["observation", "forecast", "alert"]
- sink: weatherdb
kinds: ["observation", "forecast", "alert"]
- sink: stdout
kinds: ["observation", "forecast", "alert"]
...