From d81e69b3a2762c0e9edebd4a14fd77e04753f050 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 13 Sep 2023 08:30:56 +0000 Subject: [PATCH] add readonly mode --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index cbd1fae..b42997e 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,43 @@ ln -s docker-compose-validator.yml docker-compose.yml ```shell docker compose up -d ``` + +# Running SANR Network node in readonly mode + + +## Minimum requirements +- [Ubuntu latest](https://ubuntu.com/server) +- [Docker](https://docs.docker.com/engine/install/ubuntu/) +- [Docker Compose](https://docs.docker.com/engine/install/ubuntu/) +- Ethereum wallet (ERC-20 with full access) + +## 1. Environment setup +### 1.1 Create a directory and Navigate to it +```shell +mkdir -p /opt/sanchain/readonly +``` +```shell +cd /opt/sanchain/readonly +``` +### 1.2 Clone the Project +```shell +git clone git@gitlab.mind-dev.com:santiopts/pos/pos_network_signer.git . +``` +### 1.3 Configuration and settings edit +```shell +mv env.example .env +``` +```shell +nano .env +``` +- `EXTERNAL_IP`=Server external address + +### 5.2 Configure the Node Type +```shell +ln -s docker-compose-readonly.yml docker-compose.yml +``` + +### 5.3 Launch the Project +```shell +docker compose up -d +