I have searched through the Internet but I have not found any solution, or maybe I have not searched correctly, don't know.
I was wondering if there is anyway of running a multiple websites in a single Docker container from a single Docker image.
What I am trying to obtain is a website-path-replication of my project repository.
For example, let say I have following repository branches:
/master
/rc
/develop
/feature
/some-new-change
/another-change
/something-waiting-mr
/fix
/client-urgent-fix
/some-bug
On the browser I want to have following URLs:
https?://path:port/master
https?://path:port/rc
https?://path:port/develop
https?://path:port/feature/some-new-change
https?://path:port/feature/another-change
https?://path:port/feature/something-waiting-mr
https?://path:port/fix/client-urgent-fix
https?://path:port/some-bug
Obviously, those would be only visible from private network, while public proxy will point always to /master endpoint hook.
The project is a Webpack compiled WebApplication (ReactJS, SASS, etc.) and the target is to deploy each branch version of the application inside its own service folder.
Current status:
Within a network environment, have a machine running several docker containers, each container mapped from image port to public server port.
CI+CD scripts runs on each repository push just for a selected branch and deploys a docker image, holding Apache Web Server, into its container.
In this way, I only have one and unique bundled application within the /var/www of the Apache's server, but what I am trying is to obtain the above explanation.
What I have found on the Internet is to publish multiple Docker images in a single container.
Any idea?
Thanks for your time and responses.