Skip to content

Improve Management of Environment Variables in docker-compose.yml #46

@Sidharth-Singh10

Description

@Sidharth-Singh10

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.toml or .env) for easier management.

  • Dynamic Loading: Ensure that the environment variables are loaded dynamically into the docker-compose.yml or 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions