From 401898a26b052794af8bbd54d1453b5c51ed493c Mon Sep 17 00:00:00 2001 From: "Bernard Sadaka (SDKAAA)" Date: Thu, 7 Mar 2024 15:39:42 +0100 Subject: [PATCH] [Fix] be able to run different psql at the same time. ports were wrongly attributed in the env vars Signed-off-by: Bernard Sadaka (SDKAAA) --- forgejo/.env | 4 ++-- forgejo/docker-compose.yml | 2 +- keycloak/.env | 2 +- keycloak/docker-compose.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/forgejo/.env b/forgejo/.env index b5503d5..bc63429 100644 --- a/forgejo/.env +++ b/forgejo/.env @@ -1,5 +1,5 @@ -POSTGRES_INTERNAL_PORT=15432 -POSTGRES_EXTERNAL_PORT=15432 +POSTGRES_INTERNAL_PORT=5432 +POSTGRES_EXTERNAL_PORT=25432 POSTGRES_USER=forgejo_usr POSTGRES_PASSWORD=forgejo_pwd POSTGRES_DB=forgejo_db diff --git a/forgejo/docker-compose.yml b/forgejo/docker-compose.yml index af26ff3..390f25f 100644 --- a/forgejo/docker-compose.yml +++ b/forgejo/docker-compose.yml @@ -12,7 +12,7 @@ services: - USER_UID=1000 - USER_GID=1000 - FORGEJO__database__DB_TYPE=postgres - - FORGEJO__database__HOST=psqldb:${POSTGRES_EXTERNAL_PORT} + - FORGEJO__database__HOST=psqldb:${POSTGRES_INTERNAL_PORT} - FORGEJO__database__NAME=${POSTGRES_DB} - FORGEJO__database__USER=${POSTGRES_USER} - FORGEJO__database__PASSWD=${POSTGRES_PASSWORD} diff --git a/keycloak/.env b/keycloak/.env index 9b2032a..e842a02 100644 --- a/keycloak/.env +++ b/keycloak/.env @@ -1,4 +1,4 @@ -POSTGRES_INTERNAL_PORT=15432 +POSTGRES_INTERNAL_PORT=5432 POSTGRES_EXTERNAL_PORT=15432 POSTGRES_USER=keycloak_usr POSTGRES_PASSWORD=keycloak_pwd diff --git a/keycloak/docker-compose.yml b/keycloak/docker-compose.yml index 41d1e02..1fac61e 100644 --- a/keycloak/docker-compose.yml +++ b/keycloak/docker-compose.yml @@ -16,7 +16,7 @@ services: KC_HOSTNAME: ${KEYCLOAK_DOMAIN} KC_DB: postgres KC_DB_URL_HOST: psqldb - KC_DB_URL_PORT: ${POSTGRES_EXTERNAL_PORT} + KC_DB_URL_PORT: ${POSTGRES_INTERNAL_PORT} KC_DB_URL_DATABASE: ${POSTGRES_DB} KC_DB_USERNAME: ${POSTGRES_USER} KC_DB_SCHEMA: 'public'