Skip to content

Commit

Permalink
Merge pull request #4 from SDKAAA/main
Browse files Browse the repository at this point in the history
[Fix] be able to run different psql at the same time. ports were wron…
  • Loading branch information
SDKAAA authored Mar 7, 2024
2 parents 0b88117 + 401898a commit ae467a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions forgejo/.env
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion forgejo/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion keycloak/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POSTGRES_INTERNAL_PORT=15432
POSTGRES_INTERNAL_PORT=5432
POSTGRES_EXTERNAL_PORT=15432
POSTGRES_USER=keycloak_usr
POSTGRES_PASSWORD=keycloak_pwd
Expand Down
2 changes: 1 addition & 1 deletion keycloak/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ae467a6

Please sign in to comment.