File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -283,15 +283,11 @@ autoconfigured):
283283 # RABBITMQ_DSN
284284 rabbitmq : ...
285285
286- If you rename environment variables inside the
287- ``docker-compose.yaml `` then you have to make sure Symfony is aware of this
288- change as well. For example if inside your ``docker-compose.yaml `` you define
289- ``MYSQL_URL `` instead of ``DATABASE_URL ``,
290- you have to make sure that in your Symfony project all occurences of this
291- environment variable are changed as well. A safer alternative to changing the
292- environment variable could be to reassign ``MYSQL_URL `` to ``DATABASE_URL ``
293- inside your ``.env.local `` to ensure that the name Symfony expected is actually
294- set:
286+ If your ``docker-compose.yaml `` file doesn't use the environment variable names
287+ expected by Symfony (e.g. you use ``MYSQL_URL `` instead of ``DATABASE_URL ``)
288+ then you need to rename all occurrences of those environment variables in your
289+ Symfony application. A simpler alternative is to use the ``.env.local `` file to
290+ reassign the environment variables:
295291
296292.. code-block :: bash
297293
You can’t perform that action at this time.
0 commit comments