Manual Installation: Docker Distributed
Three phases: generate certs locally, per-node setup, cluster bootstrap.
1) Generate Certificates (local)
mkdir -p shugur-certs/safe-dir && cd shugur-certscockroach cert create-ca --certs-dir=. --ca-key=./ca.keycockroach cert create-node localhost <node1_ip> <node2_ip> <node3_ip> --certs-dir=. --ca-key=./ca.keycockroach cert create-client relay --certs-dir=. --ca-key=./ca.keycockroach cert create-client root --certs-dir=. --ca-key=./ca.key
2) Per-Node Setup
ssh user@<server_ip>mkdir -p ~/shugur-relay/{certs,config,data/cockroach}cd ~/shugur-relayscp ~/shugur-certs/*.{crt,key} user@<server_ip>:~/shugur-relay/certs/
curl -O https://github.com/Shugur-Network/relay/raw/main/docker/compose/docker-compose.distributed.ymlcurl -O https://github.com/Shugur-Network/relay/raw/main/config/production.yamlmv production.yaml config.yaml
3) Cluster Bootstrap
docker-compose -f docker-compose.distributed.yml up -d cockroach# Wait, then initialize/docker exec -it shugur-cockroach cockroach init --certs-dir=/cockroach/certs --host=localhost:26257# Start other nodes' cockroach, then all servicesdocker-compose -f docker-compose.distributed.yml up -d