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

Running Multiple Instances of the Same Project in the same Docker Environment #156

Open
danniarreza opened this issue Jan 11, 2023 · 0 comments

Comments

@danniarreza
Copy link

Hi, I'm trying to do as the title suggests. So, same Mendix Project, runs in two containers that can be accessed through localhost:8080 & localhost:8081 for example.

What I did was (1) specifying the $PORT variable in the Dockerfile to receive a value from the docker build command so then I can specify the different ports, and then (2) docker build twice to have two images with different ports. Building the images was a success, of course, but when I docker run the second image, it says this "Admin port '8082' is already in use", see below.

WhatsApp Image 2023-01-11 at 13 37 43

Is there a way to change this admin port from outside the project, as in, from either the Dockerfile or from the build-args parameter or anything?

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