Skip to content

Commit

Permalink
Introduce support of the RMQ 3.10 && RMQ 3.11 && RMQ 3.12 && RMQ 3.13 (
Browse files Browse the repository at this point in the history
…#500)

* Introduce support of the RMQ 3.13

* RMQ 3.13: Configuration changes

* RMQ 3.13

* Introduce support of RMQ 3.10, 3.11, 3.12

---------

Co-authored-by: Valerii Trots <[email protected]>
  • Loading branch information
alexanderM91 and tvaleriy authored Oct 30, 2024
1 parent 30f93ed commit 8bfabae
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ For contribution guidelines, see [Code contribution guide](https://docs.spryker.
| broker | rabbitmq | 3.7 | | |
| | | 3.8 | &check; | |
| | | 3.9 | &check; | |
| | | 3.10 | &check; | |
| | | 3.11 | &check; | |
| | | 3.12 | &check; | |
| | | 3.13 | &check; | |
| session | redis | 5.0* | &check; | |
| | redis | 6.2 | &check; | |
| key_value_store | redis | 5.0* | &check; | |
Expand Down
19 changes: 19 additions & 0 deletions generator/src/templates/service/rabbitmq/3.10/rabbitmq.yml.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ serviceName }}:
image: spryker/rabbitmq:3.10
hostname: {{ serviceName }} # RabbitMQ determines the cluster by its hostname
networks:
- private
labels:
'spryker.app.name': broker
'spryker.app.type': services
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG}
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 10s
timeout: 5s
retries: 10
environment:
RABBITMQ_DEFAULT_USER: "{{ serviceData['api']['username'] }}"
RABBITMQ_DEFAULT_PASS: "{{ serviceData['api']['password'] }}"
volumes:
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/lib/rabbitmq:rw
19 changes: 19 additions & 0 deletions generator/src/templates/service/rabbitmq/3.11/rabbitmq.yml.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ serviceName }}:
image: spryker/rabbitmq:3.11
hostname: {{ serviceName }} # RabbitMQ determines the cluster by its hostname
networks:
- private
labels:
'spryker.app.name': broker
'spryker.app.type': services
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG}
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 10s
timeout: 5s
retries: 10
environment:
RABBITMQ_DEFAULT_USER: "{{ serviceData['api']['username'] }}"
RABBITMQ_DEFAULT_PASS: "{{ serviceData['api']['password'] }}"
volumes:
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/lib/rabbitmq:rw
19 changes: 19 additions & 0 deletions generator/src/templates/service/rabbitmq/3.12/rabbitmq.yml.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ serviceName }}:
image: spryker/rabbitmq:3.12
hostname: {{ serviceName }} # RabbitMQ determines the cluster by its hostname
networks:
- private
labels:
'spryker.app.name': broker
'spryker.app.type': services
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG}
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 10s
timeout: 5s
retries: 10
environment:
RABBITMQ_DEFAULT_USER: "{{ serviceData['api']['username'] }}"
RABBITMQ_DEFAULT_PASS: "{{ serviceData['api']['password'] }}"
volumes:
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/lib/rabbitmq:rw
19 changes: 19 additions & 0 deletions generator/src/templates/service/rabbitmq/3.13/rabbitmq.yml.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ serviceName }}:
image: spryker/rabbitmq:3.13
hostname: {{ serviceName }} # RabbitMQ determines the cluster by its hostname
networks:
- private
labels:
'spryker.app.name': broker
'spryker.app.type': services
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG}
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 10s
timeout: 5s
retries: 10
environment:
RABBITMQ_DEFAULT_USER: "{{ serviceData['api']['username'] }}"
RABBITMQ_DEFAULT_PASS: "{{ serviceData['api']['password'] }}"
volumes:
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/lib/rabbitmq:rw

0 comments on commit 8bfabae

Please sign in to comment.