Score:0

webserver in docker containers on ubuntu

pl flag

I've setup a Apache,PHP webserver on Ubuntu 20.04 and I can access my site using my domain-name dot com. I need to setup another site on the same server however it has slightly different requirements than the existing site. I was thinking to setup a docker container to solve this issue.

So, my server is already using port 80 to serve to domain-1. How do I setup docker to serve domain-2. Is this possible? I can't figure it out.

Or the other thing I can think of is to move both sites to docker containers. In that case, how do I setup two different domains to two different docker containers?

I am new to this, so please guide.

in flag
The configuration [in this question](https://askubuntu.com/q/942908/1222991) will get you most of the way there. If you know how to set up Docker to listen on specific ports, then you’ll have everything you need
pl flag
@matigo - thank you for the link. I'll go through and see if works.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.