Neo4j Docker

I successfully installed the Neo4j server and I could access the neo4j browser in my remote interface. I wanted to try the Neo4j using docker installation. I could successfully install it and could also use Cypher directly in my docker container where I load data and query it. I wanted it to use the Neo4j browser but there was a problem that I can't access the remote interface.

I used the default configuration instead only I replaced the localhost with "my host" as I did when I used the Neo4j server. For the docker installation I used this command:

docker run  --env NEO4J_dbms_connector_http_advertised_address=myhost:7474 --name myneo4j neo4j

All it seems fine where it says " The Remote interface available at myhost" but when I try to access it, it is not accessible.

2022-01-31 19:09:55.873+0000 INFO Starting... 2022-01-31 19:09:56.327+0000 INFO This instance is ServerId{2d5d20e7} (2d5d20e7-79c5-4d41-a9ec-02f205ee9cff) 2022-01-31 19:09:57.701+0000 INFO ======== Neo4j 4.4.3 ======== 2022-01-31 19:09:59.460+0000 INFO Initializing system graph model for component 'security-users' with version -1 and status UNINITIALIZED 2022-01-31 19:09:59.477+0000 INFO Setting up initial user from auth.ini file: neo4j 2022-01-31 19:09:59.489+0000 INFO Setting version for 'security-users' to 3 2022-01-31 19:09:59.491+0000 INFO After initialization of system graph model component 'security-users' have version 3 and status CURRENT 2022-01-31 19:09:59.496+0000 INFO Performing postInitialization step for component 'security-users' with version 3 and status CURRENT 2022-01-31 19:10:19.748+0000 INFO Bolt enabled on 2022-01-31 19:10:20.597+0000 INFO Remote interface available at http://myhost:7474/ 2022-01-31 19:10:20.601+0000 INFO id: FE5594F0EBDB5C77D5D9CDC08D70188EFF99420E2F35AF5912471F53C3D5E585 2022-01-31 19:10:20.601+0000 INFO name: system 2022-01-31 19:10:20.601+0000 INFO creationDate: 2022-01-31T19:09:58.26Z 2022-01-31 19:10:20.601+0000 INFO Started.

Now it works, the issue was mainly because of formatting issue when using docker e.g., single underscore is converted in double underscore etc. The solution:

 docker run --publish=7474:7474 --publish=7687:7687  --env NEO4J_dbms_connector_http_advertised__address=myhost:7474   --name neo4j neo4j
1 Like