Skip to content

Commit 4710e85

Browse files
committed
fix: update port in django postgres app
Signed-off-by: Anju Pathak <[email protected]>
1 parent e8de1ae commit 4710e85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

django-postgres/django_postgres/django_postgres/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _db_options_from_env():
107107
'USER': 'postgres',
108108
'PASSWORD': 'postgres',
109109
'HOST': '0.0.0.0',
110-
'PORT': '6000',
110+
'PORT': '5432',
111111
'OPTIONS': _db_options_from_env(),
112112
}
113113
}

django-postgres/django_postgres/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
POSTGRES_USER: postgres
99
POSTGRES_PASSWORD: postgres
1010
ports:
11-
- "6000:5432" # Map the PostgreSQL port to the host machine
11+
- "5432:5432" # Map the PostgreSQL port to the host machine
1212
volumes:
1313
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
1414

@@ -19,7 +19,7 @@ services:
1919
POSTGRES_USER: postgres
2020
POSTGRES_PASSWORD: postgres
2121
ports:
22-
- "6000:5432"
22+
- "5432:5432"
2323
volumes:
2424
- pgdata_ssl:/var/lib/postgresql/data
2525
- ./sql/enable-ssl.sh:/docker-entrypoint-initdb.d/enable-ssl.sh:ro

0 commit comments

Comments
 (0)