Skip to content

Commit d185900

Browse files
committed
fix: update environment variable names for PostgreSQL configuration in docker-compose and application settings
1 parent 8dcd5b6 commit d185900

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
# PostgreSQL Configuration
1212
POSTGRES_HOST: postgres
1313
POSTGRES_PORT: 5432
14-
POSTGRES_NAME: todo_postgres
14+
POSTGRES_DB: todo_postgres
1515
POSTGRES_USER: todo_user
1616
POSTGRES_PASSWORD: todo_password
1717
volumes:

docs/DUAL_WRITE_SYSTEM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ DUAL_WRITE_RETRY_DELAY=5 # Delay between retries (seconds)
4646
# Postgres Configuration
4747
POSTGRES_HOST=localhost
4848
POSTGRES_PORT=5432
49-
POSTGRES_NAME=todo_postgres
49+
POSTGRES_DB=todo_postgres
5050
POSTGRES_USER=todo_user
5151
POSTGRES_PASSWORD=todo_password
5252
```

todo_project/settings/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Postgres Configuration
2323
POSTGRES_HOST = os.getenv("POSTGRES_HOST", "localhost")
2424
POSTGRES_PORT = os.getenv("POSTGRES_PORT", "5432")
25-
POSTGRES_NAME = os.getenv("POSTGRES_NAME", "todo_postgres")
25+
POSTGRES_DB = os.getenv("POSTGRES_DB", "todo_postgres")
2626
POSTGRES_USER = os.getenv("POSTGRES_USER", "todo_user")
2727
POSTGRES_PASSWORD = os.getenv("POSTGRES_PASSWORD", "todo_password")
2828

@@ -167,7 +167,7 @@
167167
DATABASES = {
168168
"default": {
169169
"ENGINE": "django.db.backends.postgresql",
170-
"NAME": POSTGRES_NAME,
170+
"NAME": POSTGRES_DB,
171171
"USER": POSTGRES_USER,
172172
"PASSWORD": POSTGRES_PASSWORD,
173173
"HOST": POSTGRES_HOST,

0 commit comments

Comments
 (0)