clidey / whodb

A lightweight next-gen data explorer - Postgres, MySQL, SQLite, MongoDB, Redis, MariaDB & Elastic Search with Chat interface
https://whodb.clidey.com
GNU General Public License v3.0
1.9k stars 56 forks source link

want access from another port at client host but '-p custom-port:8080' not work, it always litening on 8080 and tips to access from '0.0.0.0:8080' #212

Open langlichong opened 4 weeks ago

hkdeman commented 4 weeks ago

Hello hello! When using docker-compose you should be able to change the listening port in the client by setting "-p 8081:8080".

For example:

image

You can further alter the port by using "PORT" environment variable

For example:

image

You should be able to access at 0.0.0.0:8080 in both the cases.

Hope this helps!

langlichong commented 4 weeks ago

Thank you @hkdeman !
i tried , the container start with another port but 8080, and can not access the app from the tips image

my docker container is at a ubuntu server host with inner ip 192.168.54.9 , and after mapping the prot to non-default 8080 , the containner successful, but when i access from my work desktop with http://192.168.54.9:9977 , there is no response : image

my netwrok is ok , and other apps deployed can be access successfully !

hkdeman commented 3 weeks ago

The team just tried to replicate this but was unsuccessful. WhoDB server seems to be accessible throughout the local network (same WiFi connection). Happy to get on a call and try finding the issue - https://calendly.com/clidey/whodb.

This gives us a good idea to create a community channel to chat around this. Will also try setting one :)