symfony-docker icon indicating copy to clipboard operation
symfony-docker copied to clipboard

It's possible to use many domains with Caddy?

Open Forticas opened this issue 1 year ago • 3 comments

There is a way to deploy the project with many domains (sub-domains) ?

like :

SERVER_NAME=fr.example.com, en.example.com \
APP_SECRET=ChangeMe \
CADDY_MERCURE_JWT_SECRET=ChangeMe \
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d

Forticas avatar Aug 03 '22 13:08 Forticas

I never try, I think that should work see more detail here : https://caddy.community/t/multiple-domains/1761

maxhelias avatar Aug 03 '22 19:08 maxhelias

I never try, I think that should work see more detail here : https://caddy.community/t/multiple-domains/1761

I'm sure that's possible but I'm asking if it can be done with the current project configuration And how? It's my first experience with caddy, but i read many documentation about abd did't find the answer.

Forticas avatar Aug 03 '22 19:08 Forticas

This should work:

SERVER_NAME='domain1.com, domain2.com' docker compose up -f docker-compose.yaml -f docker-compose.prod.yaml -d

dunglas avatar Aug 04 '22 06:08 dunglas