Skip to content

Commit

Permalink
fix: env var names
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Viitala committed Dec 18, 2023
1 parent c35f1e6 commit f0465fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ docker-compose up

## Service diagram


> **Warning**
> Please check the instructions above on deploying the template. By default, Railway creates publicly available proxies for your Postgres and Redis services - make sure to delete them. Should you ever need direct access, creating the proxies is just a few clicks.

```mermaid
flowchart LR
Expand Down
10 changes: 5 additions & 5 deletions railway_django_stack/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"HOST": config("POSTGRES_HOST", default="db"),
"USER": config("POSTGRES_USER", default="postgres"),
"NAME": config("POSTGRES_DB", default="postgres"),
"PASSWORD": config("POSTGRES_PASSWORD", default="postgres"),
"PORT": config("POSTGRES_PORT", default=5432),
"HOST": config("PGHOST", default="db"),
"USER": config("PGUSER", default="postgres"),
"NAME": config("PGDATABASE", default="postgres"),
"PASSWORD": config("PGPASSWORD", default="postgres"),
"PORT": config("PGPORT", default=5432),
"CONN_MAX_AGE": 60,
}
}
Expand Down

0 comments on commit f0465fe

Please sign in to comment.