Cookiecutter Django With Amazon RDS

So, we need to connect our docker based django app to our RDS instance, here are the steps to do so. Step 1 Remove DATABASE_URL=postgres://postgres from .envs/.production/.django Step 2 Update .envs/.production/.postgres and setup your database credentials. POSTGRES_HOST= # db host POSTGRES_PORT= # db port POSTGRES_DB= # db name POSTGRES_USER= # db user POSTGRES_PASSWORD= # db pass Step 3 Comment or remove Postgres volumes and services from production.yml file. You will have to remove the complete postgres service....

April 2, 2021 · 1 min · Haseeb Ur Rehman