3

When you deploy the laravel application using docker in production you need at least two containers Nginx, PHP and the source code should be in both containers, if you deploy another laravel application on the same (port, server) you have to put the source code of the second application in the Nginx container too which makes both applications depend on each other and cause problems for CI/CD.

Is there a way to deploy both applications independently using docker on the same (port, server) but on different domains?

N69S
  • 16,110
  • 3
  • 22
  • 36
osama Abdullah
  • 193
  • 1
  • 12
  • 1
    I think you can use the nginx reverse proxy to achieve that https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Docker-Nginx-reverse-proxy-setup-example – Moeen Basra Jun 23 '22 at 06:58

0 Answers0