dunglas / symfony-docker

A Docker-based installer and runtime for Symfony. Install: download and `docker compose up`.
https://dunglas.dev/2021/12/symfonys-new-native-docker-support-symfony-world/
2.54k stars 754 forks source link

Is mecure required for production? #620

Closed Wordlesschunk closed 4 months ago

Wordlesschunk commented 4 months ago

Hey guys i'm wanting to use this skeleton but im not too sure why the mecure hub is required? i've tried to remove its references from the Caddyfile but the option CADDY_MERCURE_JWT_SECRET is still required when booting the containers in prod mode

can someone explain to me why its required and if it isnt, how can i fully remove it from my stack? cant seem to find anymore references to it

Many Thanks!

dunglas commented 4 months ago

It isn't.

Remove this block from Caddyfile if you don't want to enable the Mercure hub:

https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile#L32-L45

You can also remove everything related to Mercure in compose*.yaml.