I am going to deploy my app to production on VPS server, using Docker. My goal is stable version from latest tag at example.com
, and dev version from dev tag at dev.example.com
.
Because this is an PHP application, container has own nginx+php set. I don't know how - if it's even possible (without Swoole in PHP etc.) to avoid this.
Problem is in resources - I see that each app container has own nginx instance, and server (VPS) must have global nginx, working as reverse proxy for containers.
Is there are any better way to archieve my goals? Thanks!