Current Behaviour:
When --env-file flag is passed from the command line and COMPOSE_PROFILES is specified in the env file, the value is not used for the profiles configuration.
Expected Behaviour:
The COMPOSE_PROFILES value specified in the env file should be set as the profile configuration and respective containers should be started.
Description
Current Behaviour: When
--env-file
flag is passed from the command line and COMPOSE_PROFILES is specified in the env file, the value is not used for the profiles configuration.Expected Behaviour: The COMPOSE_PROFILES value specified in the env file should be set as the profile configuration and respective containers should be started.
Steps To Reproduce
Configuration Files: docker-compose.yml
.env.dev
When we run
docker compose --env-file .env.dev up -d
a messageno service selected
is thrown.But both the services nginx1,nginx2 should be started.
Compose Version
Docker Environment
Anything else?
No response