Hosting multiple websites with Docker [noob]

So I followed Digital Ocean’s guide on installing Wordpress with Docker (link here) and it worked fine

Now I’m trying to add sub domains and host more websites but I get an error when it comes to serving the following sites from port 443 because the first site is already utilising this to serve Wordpress. (I am basically running through the process again for each domain instance - I’ve also tried modifying the nginx.conf file to serve sub domains but no success)

Is there a way I can bypass this or route both traffic internally to use port 443?

(Since I’m using nginx I have a feeling I can utilise the proxy to achieve this but my noob neurones don’t seem to be shooting me to the right direction)

Any pointers or blogs would save my last brain cell. Thnkx

submitted by /u/iffdogg
[link] [comments]