Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request:: RabbitMQ Container #83

Open
2 tasks
NathanDayMF opened this issue Mar 5, 2019 · 1 comment
Open
2 tasks

Feature Request:: RabbitMQ Container #83

NathanDayMF opened this issue Mar 5, 2019 · 1 comment

Comments

@NathanDayMF
Copy link

Background

with the RabbitMQ module being downgraded from CE to OS would it be possible to add a RabbitMQ Container to this setup. I don't know whether this would be a separate container or something installed on the image if it is possible to do this just by modifying the docker-compose config then if someone could point me in the right direction (bit of a docker noob)

UAC

  • RabbitMQ is added to the Setup
  • Magento 2.3.0 Can connect to RabbitMQ
@NathanDayMF
Copy link
Author

NathanDayMF commented Mar 6, 2019

for anyone interested in this, think I've figured something out, want to do some more testing before pushing a PR

docker-compose.yml

rabbitmq:
    image: "rabbitmq:3-management"
    hostname: "rabbit"
    ports:
      - "15672:15672"
      - "5672:5672"
    labels:
      NAME: "rabbitmq"
    volumes:
      - ./rabbitmq-isolated.conf:/etc/rabbitmq/rabbitmq.config
    networks:
      - mgento2-docker-network

rabbitmq-isolated.conf

[
 {rabbit,
  [
   %% The default "guest" user is only permitted to access the server
   %% via a loopback interface (e.g. localhost).
   %% {loopback_users, [<<"guest">>]},
   %%
   %% Uncomment the following line if you want to allow access to the
   %% guest user from anywhere on the network.
   {loopback_users, []},
   {default_vhost,       "/"},
   {default_user,        "magento"},
   {default_pass,        "magento"},
   {default_permissions, [".*", ".*", ".*"]}
  ]}
]

app/etc/env.php

'queue' => [
    'amqp' => [
        'host' => 'rabbitmq',
        'port' => '5672',
        'user' => 'magento',
        'password' => 'magento',
        'virtualhost' => '/',
        'ssl' => false
    ]
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant