Skip to content

Setup multiple diffrents symfony-docker on the same domain. #740

Closed
@NeyrowZ

Description

@NeyrowZ

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)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions