Skip to content

Commit

Permalink
Fix issue with local docker setup (#36)
Browse files Browse the repository at this point in the history
* update local setup

* fix RDS_BACKEND_SECRET_KEY field name change

* fix readme command

---------

Co-authored-by: pallab <okay>
  • Loading branch information
pallabez authored Oct 14, 2023
1 parent 837b0c4 commit 2236a60
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@ SECRET_KEY='SECRET_KEY'
RDS_BACKEND_SECRET_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'

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pip install -r requirements.txt
```
- Spin up the postgresql server, the container
```
docker-compose -f /deploy/compose.yml up -d
docker-compose -f deploy/compose.yml up -d
```
- Setup the env files
```
Expand Down
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 2236a60

Please sign in to comment.