app8user8
(Infinil)
February 13, 2023, 3:52pm
1
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
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 !!
app8user8
(Infinil)
February 16, 2023, 2:30am
3
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
app8user8
(Infinil)
February 16, 2023, 4:16am
5
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?