Created
October 6, 2017 13:04
-
-
Save rubanraj54/935720f7ff9b87427d51372f79fba2b4 to your computer and use it in GitHub Desktop.
Neo4j Enterprise edition docker compose file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
instance1: | |
image: neo4j:3.2-enterprise | |
ports: | |
- 7474:7474 | |
- 7687:7687 | |
volumes: | |
- $HOME/neo4j-enterprise/logs1:/logs | |
hostname: instance1 | |
networks: | |
- cluster | |
environment: | |
- NEO4J_dbms_mode=HA | |
- NEO4J_ha_serverId=1 | |
- NEO4J_ha_host_coordination=instance1:5001 | |
- NEO4J_ha_host_data=instance1:6001 | |
- NEO4J_ha_initialHosts=instance1:5001,instance2:5001,instance3:5001 | |
instance2: | |
image: neo4j:3.2-enterprise | |
ports: | |
- 7475:7474 | |
- 7688:7687 | |
volumes: | |
- $HOME/neo4j-enterprise/logs2:/logs | |
hostname: instance2 | |
networks: | |
- cluster | |
environment: | |
- NEO4J_dbms_mode=HA | |
- NEO4J_ha_serverId=2 | |
- NEO4J_ha_host_coordination=instance2:5001 | |
- NEO4J_ha_host_data=instance2:6001 | |
- NEO4J_ha_initialHosts=instance1:5001,instance2:5001,instance3:5001 | |
depends_on: | |
- "instance1" | |
instance3: | |
image: neo4j:3.2-enterprise | |
ports: | |
- 7476:7474 | |
- 7689:7687 | |
volumes: | |
- $HOME/neo4j-enterprise/logs3:/logs | |
hostname: instance3 | |
networks: | |
- cluster | |
environment: | |
- NEO4J_dbms_mode=HA | |
- NEO4J_ha_serverId=3 | |
- NEO4J_ha_host_coordination=instance3:5001 | |
- NEO4J_ha_host_data=instance3:6001 | |
- NEO4J_ha_initialHosts=instance1:5001,instance2:5001,instance3:5001 | |
depends_on: | |
- "instance2" | |
networks: | |
cluster: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment