You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.sample file in the same directory as the docker-compose.yml file.
Move the POSTGRES_USER and POSTGRES_PASSWORD environment variables from the docker-compose.yml file to the .env.sample file.
Update the docker-compose.yml file to reference these variables from the .env.sample file.
Update the documentation to instruct users to create their own .env.sample file with their specific details.
Acceptance Criteria:
The docker-compose.yml file no longer contains the POSTGRES_USER and POSTGRES_PASSWORD environment variables directly.
The .env.sample file is created and contains the POSTGRES_USER and POSTGRES_PASSWORD environment variables.
The text was updated successfully, but these errors were encountered:
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 thedocker-compose.yml
file, if it exists.Tasks:
.env.sample
file in the same directory as thedocker-compose.yml
file.POSTGRES_USER
andPOSTGRES_PASSWORD
environment variables from thedocker-compose.yml
file to the.env.sample
file.docker-compose.yml
file to reference these variables from the.env.sample
file..env.sample
file with their specific details.Acceptance Criteria:
docker-compose.yml
file no longer contains thePOSTGRES_USER
andPOSTGRES_PASSWORD
environment variables directly..env.sample
file is created and contains thePOSTGRES_USER
andPOSTGRES_PASSWORD
environment variables.The text was updated successfully, but these errors were encountered: