Created
August 17, 2018 22:33
-
-
Save AO-StreetArt/8dd744b9acdf3a9458006ed50abc899e to your computer and use it in GitHub Desktop.
Docker Compose - Neo4j Causal Cluster
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: | |
core1: | |
image: neo4j:3.4-enterprise | |
ports: | |
- "7474:7474" | |
- "7687:7687" | |
environment: | |
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes | |
- NEO4J_dbms_memory_pagecache_size=10M | |
- NEO4J_dbms_memory_heap_initial__size=10M | |
- NEO4J_AUTH=none | |
- NEO4J_dbms_mode=CORE | |
- NEO4J_causalClustering_expectedCoreClusterSize=3 | |
- NEO4J_causalClustering_initialDiscoveryMembers=core1:5000,core2:5000,core3:5000 | |
core2: | |
image: neo4j:3.4-enterprise | |
ports: | |
- "7475:7474" | |
- "7688:7687" | |
environment: | |
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes | |
- NEO4J_dbms_memory_pagecache_size=10M | |
- NEO4J_dbms_memory_heap_initial__size=10M | |
- NEO4J_AUTH=neo4j/neo | |
- NEO4J_dbms_mode=CORE | |
- NEO4J_causalClustering_expectedCoreClusterSize=3 | |
- NEO4J_causalClustering_initialDiscoveryMembers=core1:5000,core2:5000,core3:5000 | |
core3: | |
image: neo4j:3.4-enterprise | |
ports: | |
- "7476:7474" | |
- "7689:7687" | |
environment: | |
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes | |
- NEO4J_dbms_memory_pagecache_size=10M | |
- NEO4J_dbms_memory_heap_initial__size=10M | |
- NEO4J_AUTH=neo4j/neo | |
- NEO4J_dbms_mode=CORE | |
- NEO4J_causalClustering_discoveryAdvertisedAddress=core3:5000 | |
- NEO4J_causalClustering_transactionAdvertisedAddress=core3:6000 | |
- NEO4J_causalClustering_raftAdvertisedAddress=core3:7000 | |
- NEO4J_causalClustering_expectedCoreClusterSize=3 | |
- NEO4J_causalClustering_initialDiscoveryMembers=core1:5000,core2:5000,core3:5000 | |
readreplica1: | |
image: neo4j:3.4-enterprise | |
ports: | |
- "7477:7474" | |
- "7690:7687" | |
environment: | |
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes | |
- NEO4J_dbms_memory_pagecache_size=10M | |
- NEO4J_dbms_memory_heap_initial__size=10M | |
- NEO4J_AUTH=neo4j/neo | |
- NEO4J_dbms_mode=READ_REPLICA | |
- NEO4J_causalClustering_initialDiscoveryMembers=core1:5000,core2:5000,core3:5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment