-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
Currently, our Docker Compose configuration contains sensitive information such as the PostgreSQL username and password. This information is directly written in the docker-compose.yml file, which is not a secure practice and could lead to accidental exposure of these details.
To enhance the security of our setup, we should move these sensitive details to a separate .env.sample file. Docker Compose automatically reads from a .env.sample file in the same directory as the docker-compose.yml file, if it exists.
Tasks:
- Create a
.env.samplefile in the same directory as thedocker-compose.ymlfile. - Move the
POSTGRES_USERandPOSTGRES_PASSWORDenvironment variables from thedocker-compose.ymlfile to the.env.samplefile. - Update the
docker-compose.ymlfile to reference these variables from the.env.samplefile. - Update the documentation to instruct users to create their own
.env.samplefile with their specific details.
Acceptance Criteria:
- The
docker-compose.ymlfile no longer contains thePOSTGRES_USERandPOSTGRES_PASSWORDenvironment variables directly. - The
.env.samplefile is created and contains thePOSTGRES_USERandPOSTGRES_PASSWORDenvironment variables.