Skip to content

Commit

Permalink
Merge pull request #2520 from HeCorr/patch-1
Browse files Browse the repository at this point in the history
nats: Add JetStream usage examples
  • Loading branch information
tianon authored Jan 8, 2025
2 parents d9c0e13 + d074edf commit d24757b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nats/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
#
# docker run -p 5555:4444 %%IMAGE%% -p 4444
#
# To enable NATS JetStream, use the -js flag:
#
# docker run -p 4222:4222 %%IMAGE%% -js
#
# And, to persist JetStream data to a volume you can use the -v and -sd flags.
# Keep in mind that -v is a Docker flag, while -js and -sd are NATS Server flags:
#
# docker run -p 4222:4222 -v nats:/data %%IMAGE%% -js -sd /data
#
# Check "docker run" for more information.

$ docker run -d --name nats-main -p 4222:4222 -p 6222:6222 -p 8222:8222 %%IMAGE%%
Expand Down

0 comments on commit d24757b

Please sign in to comment.