Skip to content

Commit

Permalink
update local setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pallab committed Oct 14, 2023
1 parent 837b0c4 commit 62ffbdc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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'

5 changes: 3 additions & 2 deletions deploy/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 62ffbdc

Please sign in to comment.