Skip to content

Commit c806fc5

Browse files
authored
Merge pull request #49066 from rsvoboda/compose.amq.broker
AMQ Broker support in Compose Dev Services, example for guide
2 parents ed52ee6 + 276b8a9 commit c806fc5

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

docs/src/main/asciidoc/amqp-dev-services.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,27 @@ IMPORTANT: The configured image must be _compatible_ with the `activemq-artemis-
5959
The container is launched with the `AMQ_USER`, `AMQ_PASSWORD` and `AMQ_EXTRA_ARGS` environment variables.
6060
The ports 5672 and 8161 (web console) are exposed.
6161

62+
[[Compose]]
63+
== Compose
64+
65+
Dev Services for AMQP supports xref:compose-dev-services.adoc[Compose Dev Services].
66+
It relies on a `compose-devservices.yml`, such as:
67+
68+
[source,yaml]
69+
----
70+
name: <application name>
71+
services:
72+
artemis:
73+
image: quay.io/artemiscloud/activemq-artemis-broker:1.0.28
74+
ports:
75+
- "5672"
76+
- "8161"
77+
environment:
78+
AMQ_USER: quarkus
79+
AMQ_PASSWORD: quarkus
80+
AMQ_EXTRA_ARGS: --no-autotune --mapped --no-fsync --relax-jolokia
81+
----
82+
6283
[[configuration-reference-devservices]]
6384
== Configuration reference
6485

docs/src/main/asciidoc/compose-dev-services.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ The following is the list of platform extensions with dev services support:
170170
|Exposed Port
171171

172172
| AMQP
173-
| amqp, activemq-artemis, rabbitmq
173+
| amqp, activemq-artemis, amq-broker, rabbitmq
174174
| 5672
175175

176176
| Apicurio Registry

extensions/smallrye-reactive-messaging-amqp/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/amqp/deployment/AmqpDevServicesProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private RunningDevService startAmqpBroker(DockerStatusBuildItem dockerStatusBuil
211211
return amqpContainerLocator.locateContainer(config.serviceName, config.shared, launchMode.getLaunchMode())
212212
.map(containerAddress -> getRunningService(config, launchMode, containerAddress))
213213
.or(() -> ComposeLocator.locateContainer(composeProjectBuildItem,
214-
List.of(config.imageName, "amqp", "activemq-artemis", "rabbitmq"),
214+
List.of(config.imageName, "amqp", "activemq-artemis", "amq-broker", "rabbitmq"),
215215
AMQP_PORT,
216216
launchMode.getLaunchMode(), useSharedNetwork)
217217
.map(this::getRunningService))

0 commit comments

Comments
 (0)