Describe the bug
The DB_PASSWORD , DB_USERNAME and DB_NAME properties are different from SQL_DATABASE , SQL_USER and SQL_PASSWORD properties which are used to connect to the databse container.Due to this , during initial setup of the project , the web container throws the following error:
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL: password authentication failed for user "postgres"
To Reproduce
Steps to reproduce the behavior:
Clone the repository
Go to the project root and change .env.sampe to .env
Run docker compose -up -d
Possible Fixes
Using the same parameteres for Django as well as the psql container fixes the issue.
Describe the bug The
DB_PASSWORD
,DB_USERNAME
andDB_NAME
properties are different fromSQL_DATABASE
,SQL_USER
andSQL_PASSWORD
properties which are used to connect to the databse container.Due to this , during initial setup of the project , the web container throws the following error:To Reproduce Steps to reproduce the behavior:
docker compose -up -d
Possible Fixes Using the same parameteres for Django as well as the psql container fixes the issue.