Hi, I was trying to set up typesense cluster using...
# community-help
s
Hi, I was trying to set up typesense cluster using docker compose.Below is the code for that: typesense1: image: typesense/typesense:0.25.1 privileged: true restart: always env_file: - .env entrypoint: sh -c "/opt/typesense-server --data-dir /data/typesense1 --api-key=${TYPESENSE_API_KEY} --enable-cors --listen-port 8108 --advertised-port 8108 --no-health-check --nodes /data/typesense_nodes.json \ --peering-address 192.168.12.1 \ --peering-port 8107 \ --cluster-name my-cluster" ports: - "8108:8108" volumes: - typesense-data-1:/data/typesense1 - ./typesense_nodes.json:/data/typesense_nodes.json # Mount the nodes config file typesense2: image: typesense/typesense:0.25.1 privileged: true restart: always env_file: - .env entrypoint: sh -c "/opt/typesense-server --data-dir /data/typesense2 --api-key=${TYPESENSE_API_KEY} --enable-cors --listen-port 8108 --advertised-port 8108 --no-health-check --nodes /data/typesense_nodes.json \ --peering-address 192.168.12.2 \ --peering-port 8107 \ --cluster-name my-cluster" ports: - "8208:8108" volumes: - typesense-data-2:/data/typesense2 - ./typesense_nodes.json:/data/typesense_nodes.json # Mount the nodes config file typesense3: image: typesense/typesense:0.25.1 privileged: true restart: always env_file: - .env entrypoint: sh -c "/opt/typesense-server --data-dir /data/typesense3 --api-key=${TYPESENSE_API_KEY} --enable-cors --listen-port 8108 --advertised-port 8108 --no-health-check --nodes /data/typesense_nodes.json \ --peering-address 192.168.12.3 \ --peering-port 8107 \ --cluster-name my-cluster" ports: - "8308:8108" volumes: - typesense-data-3:/data/typesense3 - ./typesense_nodes.json:/data/typesense_nodes.json # Mount the nodes config file volumes: typesense-data-1: driver: local typesense-data-2: driver: local typesense-data-3: driver: local I have also created a typesense_node.json file as: "192.168.12.18108,192.168.12.28208,192.168.12.3:8308" but iam not able to create cluster I am getting: E20240718 042627.400213 167 server.cpp:1005] Fail to listen 192.168.12.2:8107 typesense2-1 | E20240718 042627.400245 167 typesense_server_utils.cpp:268] Failed to start peering service can someone help me out on this?