From f308e7e47869f0d20803a60a54cf769549b6a315 Mon Sep 17 00:00:00 2001 From: saqibmehmood Date: Sun, 24 Mar 2024 00:19:06 +0500 Subject: [PATCH 1/4] updated the postgresql port to 5433 from 5432 --- .env-local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env-local b/.env-local index 8e7460c3..8f490e09 100644 --- a/.env-local +++ b/.env-local @@ -1,4 +1,4 @@ -DATABASE_URL=postgres://postgres:password@database_default:5432/db +DATABASE_URL=postgres://postgres:password@database_default:5433/db DEFAULT_STORAGE_DSN=file:///data/media/?url=%2Fmedia%2F DEBUG=True DOMAIN_ALIASES="localhost, 127.0.0.1" From f40fd2a3f459034c50c7240d66eb9c02b1729517 Mon Sep 17 00:00:00 2001 From: saqibmehmood Date: Mon, 25 Mar 2024 23:27:47 +0500 Subject: [PATCH 2/4] updated readme file for port 5433' --- README.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index ebf4f1d1..7a31f163 100644 --- a/README.rst +++ b/README.rst @@ -113,10 +113,11 @@ Env variables - For production environment (if ``DEBUG`` is false) django requires you to whitelist the domain. Set the env var ``DOMAIN`` to the host, i.e. ``www.domain.com`` or ``*.domain.com``. - If you want the media hosted on S3 set the ``DEFAULT_FILE_STORAGE`` variable accordingly. -- If you want to access the PostgreSQL database from the host system, set ``DB_PORT`` to the desired port number. - 5432 is the standard port number. If you run PosgreSQL on your host system, you may want to set another port number. - If this variable is empty (the default), the PosgreSQL instance in the container is only reachable within docker, but - not from outside. +- If you want to access the PostgreSQL database from the host system, set DB_PORT to the desired port number. The default port number set in .env-local is 5433, +but feel free to change it according to your preference. 5432 is the standard port number. +If you run PostgreSQL on your host system, you may want to set another port number. +If this variable is empty (the default), the PostgreSQL instance in the container is only reachable within Docker, +but not from outside. Deployment Commands From fc39aa635f4281db541a4fc4f08b3119704ce71a Mon Sep 17 00:00:00 2001 From: saqibmehmood Date: Mon, 25 Mar 2024 23:33:34 +0500 Subject: [PATCH 3/4] updated readme file for port 5433' --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 7a31f163..77d95a63 100644 --- a/README.rst +++ b/README.rst @@ -113,11 +113,11 @@ Env variables - For production environment (if ``DEBUG`` is false) django requires you to whitelist the domain. Set the env var ``DOMAIN`` to the host, i.e. ``www.domain.com`` or ``*.domain.com``. - If you want the media hosted on S3 set the ``DEFAULT_FILE_STORAGE`` variable accordingly. -- If you want to access the PostgreSQL database from the host system, set DB_PORT to the desired port number. The default port number set in .env-local is 5433, -but feel free to change it according to your preference. 5432 is the standard port number. -If you run PostgreSQL on your host system, you may want to set another port number. -If this variable is empty (the default), the PostgreSQL instance in the container is only reachable within Docker, -but not from outside. +- If you want to access the PostgreSQL database from the host system, set ``DB_PORT`` to the desired port number. +The default port number set in .env-local is 5433, but feel free to change it according to your preference. + 5432 is the standard port number. If you run PosgreSQL on your host system, you may want to set another port number. + If this variable is empty (the default), the PosgreSQL instance in the container is only reachable within docker, but + not from outside. Deployment Commands From 365dcb4c477149e853a04162a31902a8a3c9141c Mon Sep 17 00:00:00 2001 From: saqibmehmood Date: Mon, 25 Mar 2024 23:37:42 +0500 Subject: [PATCH 4/4] updated readme file for port 5433' --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 77d95a63..704bcc9b 100644 --- a/README.rst +++ b/README.rst @@ -114,7 +114,7 @@ Env variables ``DOMAIN`` to the host, i.e. ``www.domain.com`` or ``*.domain.com``. - If you want the media hosted on S3 set the ``DEFAULT_FILE_STORAGE`` variable accordingly. - If you want to access the PostgreSQL database from the host system, set ``DB_PORT`` to the desired port number. -The default port number set in .env-local is 5433, but feel free to change it according to your preference. + The default port number set in .env-local is 5433, but feel free to change it according to your preference. 5432 is the standard port number. If you run PosgreSQL on your host system, you may want to set another port number. If this variable is empty (the default), the PosgreSQL instance in the container is only reachable within docker, but not from outside.