-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Description:
The current setup places all environment variables (secrets) directly in the docker-compose.yml file, which can lead to crowding and poor readability, especially for testing purposes. It would be more maintainable and secure to separate them into a dedicated file like docker_compose.toml
Proposed Solution:
-
Modular Configuration: Split environment variables into a separate file (e.g.,
docker_compose.tomlor .env) for easier management. -
Dynamic Loading: Ensure that the environment variables are loaded dynamically into the
docker-compose.ymlor during the container runtime. -
Use Case: This will allow cleaner separation of concerns between code, Docker configuration, and secrets, especially in a testing environment.
This would improve readability and security while reducing clutter in the docker-compose.yml.