Skip to content

A three-node NATS Streaming cluster running on top of Docker Compose for testing purposes.

License

Notifications You must be signed in to change notification settings

bmcustodio/docker-compose-nats-streaming-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose-nats-streaming-cluster

A three-node NATS Streaming cluster running on top of Docker Compose, for testing purposes.

License

Starting

To start the NATS Streaming cluster, run

$ docker-compose up
(...)
nats-streaming-2_1  | [1] 2020/03/07 13:55:23.689466 [INF] STREAM: Starting nats-streaming-server[nats-streaming] version 0.17.0
(...)
nats-streaming-1_1  | [1] 2020/03/07 13:55:23.870350 [INF] STREAM: Starting nats-streaming-server[nats-streaming] version 0.17.0
(...)
nats-streaming-3_1  | [1] 2020/03/07 13:55:23.868682 [INF] STREAM: Starting nats-streaming-server[nats-streaming] version 0.17.0
(...)

Connecting

To connect to the NATS Streaming cluster, point your NATS Streaming client at one of 127.0.0.1:{14222,24222,34222}.

Stopping

To stop the NATS Streaming cluster, hit Ctrl+C.

Destroying

To destroy the NATS Streaming cluster, run

$ docker-compose down
Removing docker-compose-nats-streaming-cluster_nats-streaming-3_1 ... done
Removing docker-compose-nats-streaming-cluster_nats-streaming-1_1 ... done
Removing docker-compose-nats-streaming-cluster_nats-streaming-2_1 ... done
Removing network docker-compose-nats-streaming-cluster_main

License

Copyright 2019-2020 bmcustodio

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A three-node NATS Streaming cluster running on top of Docker Compose for testing purposes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published