File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -283,11 +283,15 @@ autoconfigured):
283
283
# RABBITMQ_DSN
284
284
rabbitmq : ...
285
285
286
- If you can't or don't want to update the service names, you must remap the env
287
- vars so Symfony can find them. For example, if you want to keep a service called
288
- ``mysql `` instead of renaming it to ``database ``, the env var will be called
289
- ``MYSQL_URL `` instead of the ``DATABASE_URL `` env var used in the Symfony
290
- application, so you add the following to the ``.env.local `` file:
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:
291
295
292
296
.. code-block :: bash
293
297
You can’t perform that action at this time.
0 commit comments