Good evening, I have been fighting with neo4j for several days and I cannot connect, I get the following errors:
File "/home/nefalem/.local/share/virtualenvs/kazdream-OmuGMSnD/lib/python3.8/site-packages/neo4j/init.py", line 199, in bolt_driver
- raise ServiceUnavailable(str(error)) from error*
neo4j.exceptions.ServiceUnavailable: [OSError] Connection Failed. Please ensure that your database is listening on the correct host and port and that you have enabled encryption if required. Note that the default encryption setting has changed in Neo4j 4.0. See the docs for more information. Failed to establish encrypted connection.
Here is the content of the docker file:
version: "3.7"
services:
-
neo4j:*
-
image: neo4j:latest*
-
container_name: neo4j*
-
hostname: neo4j*
-
network_mode: bridge*
-
ports:*
-
- "7474:7474"*
-
- "7687:7687"*
-
environment:*
-
NEO4J_dbms.default_advertised_address: 127.0.0.1*
-
NEO4J_dbms.connectors.default_listen_address: 0.0.0.0*
-
NEO4J_dbms.ssl.policy.default.client_auth: NONE*
-
NEO4J_dbms_ssl_policy_bolt_client__auth: NONE*
-
NEO4J_dbms_ssl_policy_https_client__auth: NONE*
-
NEO4J_dbms.connector.bolt.enabled: "true"*
-
NEO4J_dbms.connector.bolt.tls_level: OPTIONAL*
-
NEO4J_dbms.connector.bolt.listen_address: 0.0.0.0:7687*
-
NEO4J_AUTH: none*
-
volumes:*
-
- ./neo4j/data:/data*
-
- ./neo4jlogs:/logs*
-
- ./neo4j/conf:/conf*