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

Docker + Magento 2 Multiple Instances does not work at the same time. #980

Open
kailashlambe21 opened this issue Aug 20, 2023 · 5 comments

Comments

@kailashlambe21
Copy link

I am trying to run multiple Magento 2 instances with the docker

Steps To Reproduce

  • Create 2 different Magneto2 + Docker set up
  • Change the port and volume details for one of the instance by using compose file, e.x app, mysql, redis ports, to avoid port issues
  • Try to run the new instance with new ports details

Expected Result
2 Instances should be running with different ports.

Actual Result
2 different Instances does not work with different ports.

@kailashlambe21 kailashlambe21 changed the title Docker + Magento 2 Multiple Instances at the same time does not work Docker + Magento 2 Multiple Instances does not work at the same time. Aug 20, 2023
@markshust
Copy link
Owner

Though this should be possible, this project doesn't necessarily support running multiple Magento projects at the same time. That said, I'd love to have this functionality in here, but I do know there are some complexities around SSL certs and the such. I'll leave this ticket open shall someone want to try to tackle this.

@kwindo
Copy link

kwindo commented Dec 23, 2023

I just ran into this and remembered this post: https://github.com/wardenenv/warden

Doesn't this relate to this issue?

@markshust
Copy link
Owner

Kinda. I don't like the complexity of how Warden manages these multi-environments, so I didn't implement the same setup in this project.

While it would be nice to run multiple instances of Magento on one machine at the same time, I really don't have this workflow. I don't mind running bin/stop and bin/start to start up a new environment.

I'd love to take a PR in though to support those that do need to run multiple environments, but I don't want to overly complicate this setup or bring in unneeded complexity to do so.

@emAfzal52
Copy link

How Can I Remove ssl and what changes need to do to remove ssl as this issue is because of ssl certificate

@markshust
Copy link
Owner

I'm not sure -- Magento is made to run on SSL, so I never recommend disabling it. If you are having an issue due to SSL certs, we would need to resolve that issue instead.

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

No branches or pull requests

4 participants