Skip to content

Commit 16f01b7

Browse files
committed
add nats expose
1 parent fd55d8a commit 16f01b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ GRAFANA_HOST_PORT=5050
3333
# MongoDB
3434
MONGODB_BIND_IP=127.0.0.1
3535
MONGODB_PORT_NUMBER=27017
36+
37+
# Nats
38+
NATS_PORT_NUMBER=4222
39+
NATS_BIND_IP=127.0.0.1

compose.database.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
# retries: 10
1414
# start_period: 30s
1515
command: --http_port 8222
16+
ports:
17+
- "${NATS_BIND_IP:-127.0.0.1}:${NATS_PORT_NUMBER:-4222}:4222"
1618
nats-exporter:
1719
image: docker.io/natsio/prometheus-nats-exporter:${NATS_EXPORTER_VERSION:-0.17.3}
1820
depends_on:

0 commit comments

Comments
 (0)