Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mstdmstd's avatar

How to config pgadmin to use in sail docker app?

I have laravel 12/postgresql app installed under "laravel/sail" 1.41 under kubuntu on my home laptop and I want to install pgadmin4 to work with my db I have installed pgadmin4 with commands :

sudo apt install pgadmin4

sudo /usr/pgadmin4/bin/setup-web.sh

Enter the email address and password to use for the initial pgAdmin user account:

Email address: ->ENTERED

pgAdmin 4 - Application Initialisation

Creating storage and log directories... We can now configure the Apache Web server for you. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. Do you wish to continue (y/n)?

and I have url :

http://127.0.0.1/pgadmin4/browser/

by which pgadmin is opened and is connected to my hosting OS postgres instance, not to sail instance.

I rearun sail docker 1 more time and opening url

http://127.0.0.1/pgadmin4/browser/

My laravel app is opened. If there is a way to config pgadmin to use some other url in browser to use pgadmin?

0 likes
0 replies

Please or to participate in this conversation.