Replies: 1 comment 1 reply
-
Hi @NeyrowZ! If I understood the question correctly, this issue can be solved by using Caddy-Docker-Proxy, Traefik, etc. I can also suggest considering the possibility of running two projects under different domains on one machine. For this, you can use the Example
|
Beta Was this translation helpful? Give feedback.
-
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: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)Question:
Is there a way to setup multiple diffrents symfony-docker projects for a same domain name and should I try to configure Caddy or make my own reverse proxy.
Beta Was this translation helpful? Give feedback.
All reactions