Public Repository

Last pushed: 6 months ago
Short Description
Build from nats:0.9.6 with new config
Full Description

Testing by runing a single container.

$ docker run --rm --name nats-test -p 4222:4222 \
mnbao1975/dh-nats:0.9.6 \
-c gnatsd.conf \
-DV

Create a cluster mode.

$ docker service create \
--name nats-cluster-node-1 \
--network nats-cluster \
--limit-memory 500M \
-p 4222:4222 \
mnbao1975/dh-nats:0.9.6 \
-c gnatsd.conf \
-routes nats://user:pass@nats-cluster-node-2:6222

// Add a new NATS node which will be discovered dynamically
$ docker service create \
--name nats-cluster-node-2 \
--network nats-cluster \
--limit-memory 500M \
mnbao1975/dh-nats:0.9.6 \
-c gnatsd.conf \
-routes nats://user:pass@nats-cluster-node-1:6222

Docker Pull Command
Owner
mnbao1975

Comments (0)