TimWolla / docker-adminer

Database management in a single PHP file
https://hub.docker.com/_/adminer/
161 stars 70 forks source link

How to define a new port? #77

Closed saxon-wu closed 4 years ago

saxon-wu commented 4 years ago

My database is postgresql and the port is 9999. Login Adminer4.7.7 report such error: "SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "postgresql" (120.240.95.33) and accepting TCP/IP connections on port 5432?". I want to define the port:9999 in docker-compose.yml, how to do?

TimWolla commented 4 years ago

I expect that you would need to specify the database port during login as postgres.example.com:9999.

In any case this is not specific to this Docker Image, if you need support with Adminer itself please have a look at the official page: https://www.adminer.org/

saxon-wu commented 4 years ago

@TimWolla Yes, I can logined by typing XXX :9999 in the server input field. Thank you!