Samagra-Development / Doc-Generator

Create PDFs from a variety of formats.
17 stars 46 forks source link

Issues in .env.sample #106

Closed RyanWalker277 closed 1 year ago

RyanWalker277 commented 1 year ago

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:

  1. Clone the repository
  2. Go to the project root and change .env.sampe to .env
  3. Run docker compose -up -d

Possible Fixes Using the same parameteres for Django as well as the psql container fixes the issue.