Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with local docker setup #36

Merged
merged 3 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading