I've setup .env.dev for custom configuration, but it seems to be ignored - only the confiuration from .env file is used.
For example, I set SERVER_NAME on .env.dev to be different from the one in .env, but docker seems to use only the value from .env.
I thought perhaps I need to explicitly define the APP_ENV environment variable:
php:
restart: unless-stopped
environment:
APP_ENV: dev
but that does not help.
However when I check with command bin/console env I see correct values, both inside the container and outside of it. So to me it seems, like the compose.yaml file just picks the value from .env and ignores all other environment files?
I've setup
.env.devfor custom configuration, but it seems to be ignored - only the confiuration from.envfile is used.For example, I set SERVER_NAME on
.env.devto be different from the one in.env, but docker seems to use only the value from.env.I thought perhaps I need to explicitly define the APP_ENV environment variable:
but that does not help.
However when I check with command
bin/console envI see correct values, both inside the container and outside of it. So to me it seems, like the compose.yaml file just picks the value from.envand ignores all other environment files?