Description
I want to be able to have two (or more) of this project running at the same time on a single domain name (e.g. example.com and panel.example.com)
Since I don't fully understand the whole setup Caddy Mercure and stuff I came up with the idea of using an Nginx reverse proxy with a config to redirect let's say example.com on port 8000 and panel.example.com to another port for two sparated symfony-docker images.
I don't know if its best practice but i already run something on my VPS on an nginx container for redirection.
actualy the only way i found was to configurate only one port in the compose.yml
like that:
ports:
- target: 443
published: 8000
protocol: tcp
so localhost:8000
is working but I don't think its a good way to do it since in prod i'll force http https and http3 to use 443 port (actualy i don't realy know if its a problem but since there's 3 port config for 3 diffrent protocols maybe it matter)