docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

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

Open kailashlambe21 opened this issue 1 year ago • 5 comments

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 avatar Aug 20 '23 06:08 kailashlambe21

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.

markshust avatar Sep 22 '23 03:09 markshust

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

Doesn't this relate to this issue?

kwindo avatar Dec 23 '23 10:12 kwindo

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.

markshust avatar Dec 30 '23 16:12 markshust

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

emAfzal52 avatar Mar 14 '24 10:03 emAfzal52

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.

markshust avatar Mar 19 '24 12:03 markshust