Unable to create a custom endpoint for neo4j http and bolt on vps

I am trying to create a docker image on my VPS but the problem is that the HTTP endpoint is only available on localhost and BOLT endpoint connection times out if I try to access it through the server's IP Address. This is the command I am using

docker run \
    --detach \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    --volume=$HOME/neo4j/logs:/logs \
    --volume=$HOME/neo4j/conf:/conf \
    neo4j:latest

In config file I have also specified server.default_listen_address=0.0.0.0
I am a noobie and not sure what I am doing wrong :frowning:

You also have to set advertised address to your server's address or hostname.

But make sure you really want to expose your database to the outside world !!

Ohh But then how would I connect to my database? like using an API as a medium and only allowing IP requests from there?

Sure you can do that. As long as you limit it to your api/gateway

I see or I was thinking to keep it on localhost only then with https connection. So that only the API on same VPS can access the database?