Updated docker compose syntax with respect to dependencies to maintain consistency with the upstream docker-compose role.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# Single-node NATS configuration for local app-to-app messaging.
|
||||
# WeatherFeeder can publish to this server without authentication.
|
||||
|
||||
# Listen on all IPv4 and IPv6 interfaces
|
||||
listen: "[::]:4222"
|
||||
|
||||
# Client connections (WeatherFeeder + consumers).
|
||||
port: 4222
|
||||
|
||||
@@ -8,6 +11,6 @@ port: 4222
|
||||
monitor_port: 8222
|
||||
|
||||
# Optional persistence for future stream use.
|
||||
jetstream {
|
||||
store_dir: "/data"
|
||||
}
|
||||
#jetstream {
|
||||
# store_dir: "/data"
|
||||
#}
|
||||
|
||||
20
templates/weatherprocessor/config.yml.j2
Normal file
20
templates/weatherprocessor/config.yml.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
sources:
|
||||
- name: WeatherfeederNATS
|
||||
driver: nats
|
||||
params:
|
||||
url: nats://nats:4222
|
||||
subject: weatherfeeder
|
||||
# Optional source tuning:
|
||||
# max_batch: 256
|
||||
# receive_wait: 25ms
|
||||
|
||||
sinks:
|
||||
- name: stdout
|
||||
driver: stdout
|
||||
params: {}
|
||||
|
||||
routes:
|
||||
- sink: stdout
|
||||
kinds: []
|
||||
...
|
||||
Reference in New Issue
Block a user