Skip to content

Fix cluster related Docker env variables #2345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/ROOT/pages/docker/clustering.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ docker run --name=server1 --detach \
--publish=6000:6000 --publish=7000:7000 \
--hostname=public-address \
--env NEO4J_dbms_cluster_endpoints=server1-public-address:6000,server2-public-address:6000,server3-public-address:6000 \
--env NEO4J_server_cluster_advertised_address=public-address:6000 \
--env NEO4J_server_cluster.raft.advertised_address=public-address:7000 \
--env NEO4J_server_default_advertised_address=public-address \
--env NEO4J_server_cluster_advertised__address=public-address:6000 \
--env NEO4J_server_cluster.raft.advertised__address=public-address:7000 \
--env NEO4J_server_default_advertised__address=public-address \
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
--env NEO4J_server_bolt_advertised__address=public-address:7687 \
--env NEO4J_server_http_advertised__address=public-address:7474 \
Expand Down
4 changes: 2 additions & 2 deletions modules/ROOT/pages/tutorial/tutorial-clustering-docker.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ The following environment variables are specific to the Neo4j cluster, and are a

* `+NEO4J_initial_server_mode__constraint+`: the database mode, defaults to `NONE`, can be set to `PRIMARY` or `SECONDARY`.
* `+NEO4J_dbms_cluster_endpoints+`: a comma-separated list of endpoints, which a server should contact to discover other cluster servers.
* `+NEO4J_server.cluster.advertised_address+`: hostname/IP address and port to advertise for transaction handling and discovery service.
* `+NEO4J_server.cluster.raft.advertised_address+`: hostname/IP address and port to advertise for cluster communication.
* `+NEO4J_server_cluster_advertised__address+`: hostname/IP address and port to advertise for transaction handling and discovery service.
* `+NEO4J_server_cluster_raft_advertised__address+`: hostname/IP address and port to advertise for cluster communication.

See xref:clustering/settings.adoc[] for more details of Neo4j cluster settings.

Expand Down