We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is possible to have multiple istances of magento website on the same server? What I need to change?
The text was updated successfully, but these errors were encountered:
Hi @olivierognn. Yes, it is possible to run multiple instances at the same time. You have three options:
If your server has multiple IP addresses you can bind the web ports of the different instances to the different IP addresses (see: docker-compose.yml)
Instance 1:
nginx: image: nginx:latest ports: - "192.168.2.2:80:80" - "192.168.2.2:443:443"
Instance 2:
nginx: image: nginx:latest ports: - "192.168.2.3:80:80" - "192.168.2.3:443:443"
If you don't have have multiple IP addresses available you can use different public ports - this is only a viable option for internally used shops:
nginx: image: nginx:latest ports: - "80:80" - "443:443"
nginx: image: nginx:latest ports: - "6080:80" - "60443:443"
Or can can put a reverse proxy in front of the two instances which routes the traffic based on the hostname.
In that case I would recommend to run the Nginx natively und bind the two instances to local IP addreses (e.g. 127.0.0.2, 127.0.0.3):
nginx: image: nginx:latest ports: - "127.0.0.2:80:80" - "127.0.0.2:443:443"
nginx: image: nginx:latest ports: - "127.0.0.3:80:80" - "127.0.0.3:443:443"
Whenever possible I would use Option 1. That's easiest to setup and maintain.
Sorry, something went wrong.
No branches or pull requests
Is possible to have multiple istances of magento website on the same server?
What I need to change?
The text was updated successfully, but these errors were encountered: