Skip to content

Commit a51fb48

Browse files
committed
Add RabbitMQ Functionality
+ Add RabbitMQ Docker Container + Update Start command to output RabbitMQ Management Panel Details + Update Magento2 Install command to configure RabbitMQ Connection + Update Environment Config Sample to include RabbitMQ Connection Configuration
1 parent f350167 commit a51fb48

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

.docker/bin/install-magento2

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ chmod u+w -R ./var ./vendor ./pub/static ./pub/media ./app/etc \
2121
--timezone=America/Chicago \
2222
--use-rewrites=1 \
2323
--backend-frontname=admin \
24+
--amqp-host=rabbitmq \
25+
--amqp-port=5672 \
26+
--amqp-user=magento\
27+
--amqp-password=magento \
28+
--amqp-virtualhost="/"
2429
--use-sample-data \
2530
&& mv ./app/etc/env.php ./app/etc/env.original.php;
2631
cp -rv /var/www/env.sample.php ./app/etc/env.php;

.docker/users/env.sample.php

+12
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@
4949
),
5050
),
5151
),
52+
'queue' =>
53+
array (
54+
'amqp' =>
55+
array (
56+
'host' => 'rabbitmq',
57+
'port' => '5672',
58+
'user' => 'magento',
59+
'password' => 'magento',
60+
'virtualhost' => '/',
61+
'ssl' => 'false',
62+
),
63+
),
5264
'resource' =>
5365
array(
5466
'default_setup' =>

docker-compose.yml

+14
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ services:
7070
networks:
7171
- <project_name>-network
7272

73+
rabbitmq:
74+
image: "rabbitmq:3-management-alpine"
75+
hostname: "rabbit"
76+
ports:
77+
- 15672:15672
78+
- 5672:5672
79+
labels:
80+
name: "rabbitmq"
81+
environment:
82+
RABBITMQ_DEFAULT_USER: "magento"
83+
RABBITMQ_DEFAULT_PASS: "magento"
84+
networks:
85+
- <project_name>-network
86+
7387
networks:
7488
<project_name>-network:
7589
driver: bridge

start

+1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ echo "
1111
🌎 Web server: http://localhost/
1212
⚙️ PHPMyAdmin: http://localhost:8080
1313
✉️ Local emails: http://localhost:8025
14+
🐇 RabbitMQ : http://localhost:15672
1415
1516
===================== 🚀 Done 🚀 ==================="

0 commit comments

Comments
 (0)