From 1d723f2ac15f214e9a7e527442964e0e033d252e Mon Sep 17 00:00:00 2001 From: MexicanAce Date: Wed, 8 May 2024 11:21:22 +0100 Subject: [PATCH 1/2] feat: add pgAdmin to manage postgres db --- hyperchain-docker-compose.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hyperchain-docker-compose.yml b/hyperchain-docker-compose.yml index adea277..2659dc6 100644 --- a/hyperchain-docker-compose.yml +++ b/hyperchain-docker-compose.yml @@ -22,6 +22,7 @@ # So 15100 - 'master', 15200 - 'slave', 15300 - 'slave2' # Database is on 15432 +# pgAdmin to manage PostgreSQL DB is on 8432 services: reth: @@ -52,6 +53,17 @@ services: # We bind only to 127.0.0.1, so setting insecure password is acceptable here - POSTGRES_PASSWORD=notsecurepassword + pgadmin4: + image: dcagatay/pwless-pgadmin4:latest + ports: + - 8432:80 + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: notsecurepassword + POSTGRES_HOST: "host.docker.internal" + POSTGRES_PORT: 15432 + restart: unless-stopped + # Master node - that will create the hyperchain zksync: stdin_open: true From bbf232f5aa868eebbedadca3362633a2aee32c5b Mon Sep 17 00:00:00 2001 From: MexicanAce Date: Wed, 8 May 2024 11:43:13 +0100 Subject: [PATCH 2/2] fix: update port and secure to only 127.0.0.1 --- hyperchain-docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hyperchain-docker-compose.yml b/hyperchain-docker-compose.yml index 2659dc6..b7c8908 100644 --- a/hyperchain-docker-compose.yml +++ b/hyperchain-docker-compose.yml @@ -22,7 +22,7 @@ # So 15100 - 'master', 15200 - 'slave', 15300 - 'slave2' # Database is on 15432 -# pgAdmin to manage PostgreSQL DB is on 8432 +# pgAdmin to manage PostgreSQL DB is on 15430 services: reth: @@ -56,12 +56,12 @@ services: pgadmin4: image: dcagatay/pwless-pgadmin4:latest ports: - - 8432:80 + - 127.0.0.1:15430:80 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: notsecurepassword - POSTGRES_HOST: "host.docker.internal" - POSTGRES_PORT: 15432 + POSTGRES_HOST: postgres + POSTGRES_PORT: 5432 restart: unless-stopped # Master node - that will create the hyperchain