From 62ffbdc168c37b63bba9900699680d2349739026 Mon Sep 17 00:00:00 2001 From: pallab Date: Sat, 14 Oct 2023 16:46:42 +0530 Subject: [PATCH] update local setup --- .env.example | 9 ++++++++- deploy/compose.yml | 5 +++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 1319fe9..0b1cd36 100644 --- a/.env.example +++ b/.env.example @@ -3,8 +3,15 @@ DJANGO_ENV=DEVELOPMENT PORT=5000 SECRET_KEY='SECRET_KEY' -RDS_BACKEND_SECRET_KEY=123456789 +REST_KEY=123456789 AUTH_TOKEN_INVALIDATION_TIME_IN_SECONDS=2592000 +POSTGRES_PASSWORD='goals-password' +POSTGRES_DB='goals-db' +POSTGRES_USER='goals-user' +POSTGRES_PORT='5432' +POSTGRES_HOST='localhost' + # ALLOWED_HOSTS accepts string as value with space as delimiter ALLOWED_HOSTS='localhost 127.0.0.1 .realdevsquad.com' + diff --git a/deploy/compose.yml b/deploy/compose.yml index 8b5b446..bd4f24f 100644 --- a/deploy/compose.yml +++ b/deploy/compose.yml @@ -8,5 +8,6 @@ services: - "5432:5432" environment: - POSTGRES_HOST_AUTH_METHOD=trust - - POSTGRES_PASSWORD=goals-local - - POSTGRES_DB=goals-api + - POSTGRES_PASSWORD=goals-password + - POSTGRES_DB=goals-db + - POSTGRES_USER=goals-user