Q. How do you define environment variables in a Docker Compose file?
β
Correct Answer: (C)
Using an '.env' file or 'environment' key
Explanation: Environment variables can be defined using an '.env' file or within the 'environment' section in the compose file.