|
| 1 | +networks: |
| 2 | + memgraph_ha: |
| 3 | + name: memgraph_ha |
| 4 | + driver: bridge |
| 5 | + ipam: |
| 6 | + driver: default |
| 7 | + config: |
| 8 | + - subnet: "172.21.0.0/16" |
| 9 | + |
| 10 | +services: |
| 11 | + coord1: |
| 12 | + image: "memgraph/memgraph" |
| 13 | + container_name: coord1 |
| 14 | + volumes: |
| 15 | + - ./license.cypher:/tmp/init/license.cypher:ro |
| 16 | + - ./HA_register.cypher:/tmp/init/HA_register.cypher:ro |
| 17 | + environment: |
| 18 | + - MEMGRAPH_HA_CLUSTER_INIT_QUERIES=/tmp/init/HA_register.cypher |
| 19 | + command: [ "--init-file=/tmp/init/license.cypher", "--log-level=TRACE", "--data-directory=/tmp/mg_data_coord1", "--log-file=/tmp/coord1.log", "--also-log-to-stderr", "--coordinator-id=1", "--coordinator-port=10111", "--coordinator-hostname=coord1", "--experimental-enabled=high-availability"] |
| 20 | + networks: |
| 21 | + memgraph_ha: |
| 22 | + ipv4_address: 172.21.0.4 |
| 23 | + |
| 24 | + coord2: |
| 25 | + image: "memgraph/memgraph" |
| 26 | + container_name: coord2 |
| 27 | + volumes: |
| 28 | + - ./license.cypher:/tmp/init/license.cypher:ro |
| 29 | + command: [ "--init-file=/tmp/init/license.cypher", "--log-level=TRACE", "--data-directory=/tmp/mg_data_coord2", "--log-file=/tmp/coord2.log", "--also-log-to-stderr", "--coordinator-id=2", "--coordinator-port=10112", "--coordinator-hostname=coord2", "--experimental-enabled=high-availability"] |
| 30 | + networks: |
| 31 | + memgraph_ha: |
| 32 | + ipv4_address: 172.21.0.2 |
| 33 | + |
| 34 | + coord3: |
| 35 | + image: "memgraph/memgraph" |
| 36 | + container_name: coord3 |
| 37 | + volumes: |
| 38 | + - ./license.cypher:/tmp/init/license.cypher:ro |
| 39 | + command: [ "--init-file=/tmp/init/license.cypher", "--log-level=TRACE", "--data-directory=/tmp/mg_data_coord3", "--log-file=/tmp/coord3.log", "--also-log-to-stderr", "--coordinator-id=3", "--coordinator-port=10113", "--coordinator-hostname=coord3", "--experimental-enabled=high-availability"] |
| 40 | + |
| 41 | + networks: |
| 42 | + memgraph_ha: |
| 43 | + ipv4_address: 172.21.0.3 |
| 44 | + |
| 45 | + instance1: |
| 46 | + image: "memgraph/memgraph" |
| 47 | + container_name: instance1 |
| 48 | + volumes: |
| 49 | + - ./license.cypher:/tmp/init/license.cypher:ro |
| 50 | + command: ["--init-file=/tmp/init/license.cypher","--data-recovery-on-startup=true", "--log-level=TRACE", "--data-directory=/tmp/mg_data_instance1", "--log-file=/tmp/instance1.log", "--also-log-to-stderr", "--management-port=10011", "--experimental-enabled=high-availability"] |
| 51 | + networks: |
| 52 | + memgraph_ha: |
| 53 | + ipv4_address: 172.21.0.6 |
| 54 | + |
| 55 | + instance2: |
| 56 | + image: "memgraph/memgraph" |
| 57 | + container_name: instance2 |
| 58 | + volumes: |
| 59 | + - ./license.cypher:/tmp/init/license.cypher:ro |
| 60 | + command: ["--init-file=/tmp/init/license.cypher","--data-recovery-on-startup=true", "--log-level=TRACE", "--data-directory=/tmp/mg_data_instance2", "--log-file=/tmp/instance2.log", "--also-log-to-stderr", "--management-port=10012", "--experimental-enabled=high-availability"] |
| 61 | + networks: |
| 62 | + memgraph_ha: |
| 63 | + ipv4_address: 172.21.0.7 |
| 64 | + |
| 65 | + instance3: |
| 66 | + image: "memgraph/memgraph" |
| 67 | + container_name: instance3 |
| 68 | + volumes: |
| 69 | + - ./license.cypher:/tmp/init/license.cypher:ro |
| 70 | + command: ["--init-file=/tmp/init/license.cypher","--data-recovery-on-startup=true", "--log-level=TRACE", "--data-directory=/tmp/mg_data_instance3", "--log-file=/tmp/instance3.log", "--also-log-to-stderr", "--management-port=10013", "--experimental-enabled=high-availability"] |
| 71 | + networks: |
| 72 | + memgraph_ha: |
| 73 | + ipv4_address: 172.21.0.8 |
0 commit comments