11=== Setting up RabbitMQ
22
3- A RabbitMQ node with the stream plugin enabled is required. The easiest way
4- to get up and running is to use Docker. It is also possible to use the
5- generic Unix package.
3+ A RabbitMQ 3.9+ node with the stream plugin enabled is required. The easiest way
4+ to get up and running is to use Docker.
65
76==== With Docker
87
@@ -22,14 +21,13 @@ This section shows how to start a broker instance for local development
2221(the broker Docker container and the client application are assumed to run on the
2322same host).
2423
25- The following command creates a one-time Docker container to run RabbitMQ
26- with the stream plugin enabled:
24+ The following command creates a one-time Docker container to run RabbitMQ:
2725
2826.Running the stream plugin with Docker
2927----
3028docker run -it --rm --name rabbitmq -p 5552:5552 \
31- -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=" -rabbitmq_stream advertised_host localhost" \
32- pivotalrabbitmq/ rabbitmq-stream
29+ -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=' -rabbitmq_stream advertised_host localhost -rabbit loopback_users "none"' \
30+ rabbitmq:3.9-rc
3331----
3432
3533The previous command exposes only the stream port (5552), you can expose
@@ -38,16 +36,19 @@ ports for other protocols:
3836.Exposing the AMQP 0.9.1 and management ports:
3937----
4038docker run -it --rm --name rabbitmq -p 5552:5552 -p 5672:5672 -p 15672:15672 \
41- -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=" -rabbitmq_stream advertised_host localhost" \
42- pivotalrabbitmq/ rabbitmq-stream
39+ -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=' -rabbitmq_stream advertised_host localhost -rabbit loopback_users "none"' \
40+ rabbitmq:3.9-rc-management
4341----
4442
4543Refer to the official https://hub.docker.com/_/rabbitmq[RabbitMQ Docker image web page]
46- to find out more about its usage. Make sure to use the `pivotalrabbitmq/rabbitmq-stream`
47- image in the command line.
44+ to find out more about its usage.
4845
49- The `pivotalrabbitmq/rabbitmq-stream` Docker image is meant for development usage only. It does not
50- support all the features of the official Docker image, like TLS.
46+ Once the container is started, **the stream plugin must be enabled**:
47+
48+ .Enabling the stream plugin:
49+ ----
50+ docker exec rabbitmq rabbitmq-plugins enable rabbitmq_stream
51+ ----
5152
5253===== With Docker Host Network Driver
5354
@@ -57,26 +58,35 @@ this is perfect for experimenting locally.
5758
5859.Running RabbitMQ Stream with the host network driver
5960----
60- docker run -it --rm --network host pivotalrabbitmq/rabbitmq-stream
61+ docker run -it --rm --name rabbitmq --network host rabbitmq:3.9-rc
62+ ----
63+
64+ Once the container is started, **the stream plugin must be enabled**:
65+
66+ .Enabling the stream plugin:
67+ ----
68+ docker exec rabbitmq rabbitmq-plugins enable rabbitmq_stream
6169----
6270
63- The command above will use the following ports: 5552 (for stream), 5672 (for AMQP),
64- 15672 (for management plugin).
71+ The container will use the following ports: 5552 (for stream) and 5672 (for AMQP.)
6572
6673[NOTE]
6774.Docker Host Network Driver Support
6875====
6976The host networking driver *only works on Linux hosts*.
7077====
7178
72- ==== With the Generic Unix Package
79+ ==== With a RabbitMQ Package Running on the Host
80+
81+ Using a package implies installing Erlang.
7382
74- The generic Unix package requires https://www.rabbitmq.com/which-erlang.html[Erlang] to be installed.
83+ * Make sure to use https://github.com/rabbitmq/rabbitmq-server/releases[RabbitMQ 3.9 or more].
84+ * Follow the steps to
85+ https://rabbitmq.com/download.html[install Erlang and the appropriate package]
86+ * Enable the plugin `rabbitmq-plugins enable rabbitmq_stream`.
87+ * The stream plugin listens on port 5552.
7588
76- * Download the https://github.com/rabbitmq/rabbitmq-server-binaries-dev/releases[latest generic Unix `alpha-stream` archive].
77- * Follow the https://www.rabbitmq.com/install-generic-unix.html[instructions to install the generic Unix package].
78- * Enable the plugin `./rabbitmq-plugins enable rabbitmq_stream`.
79- * Start the broker `./rabbitmq-server -detached`. This starts the stream listener on port 5552.
89+ Refer to the https://rabbitmq.com/stream.html[stream plugin documentation] for more information on configuration.
8090
8191=== Dependencies
8292
0 commit comments