πŸ“Š Docker
Q. How do you define environment variables in a Docker Compose file?
  • (A) Using an 'env' section
  • (B) Using a 'variables' section
  • (C) Using an '.env' file or 'environment' key
  • (D) Using a 'settings' section
πŸ’¬ Discuss
βœ… 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.

Explanation by: Vinay
Environment variables can be defined using an '.env' file or within the 'environment' section in the compose file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
122
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
98%
Success Rate