markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.57k stars 1.01k forks source link

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

Open kailashlambe21 opened 1 year ago

kailashlambe21 commented 1 year ago

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

Steps To Reproduce

Expected Result 2 Instances should be running with different ports.

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

markshust commented 1 year ago

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 commented 10 months ago

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

Doesn't this relate to this issue?

markshust commented 10 months ago

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 commented 8 months ago

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

markshust commented 7 months ago

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.