From 4c74b5ba1aa667cc67e52a5263ccb3b1358057ec Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Wed, 22 Oct 2025 20:35:00 +0500 Subject: [PATCH 1/4] Update autoseal finalization delay in environment documentation --- docs/build/sdk/v2/environment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/sdk/v2/environment.md b/docs/build/sdk/v2/environment.md index 85eaafb..d97530e 100644 --- a/docs/build/sdk/v2/environment.md +++ b/docs/build/sdk/v2/environment.md @@ -94,7 +94,7 @@ services: --dev --idle-autoseal-interval 2000 --disable-autoseal-on-tx - --autoseal-finalization-delay 2000 + --autoseal-finalization-delay 1 --state-pruning archive --blocks-pruning archive --base-path /unique/data From 2647656c37b7a27ebe55f6f572a11968fe63063e Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Wed, 22 Oct 2025 23:07:34 +0500 Subject: [PATCH 2/4] add simple explorer to docker configuration --- docs/build/sdk/v2/environment.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/build/sdk/v2/environment.md b/docs/build/sdk/v2/environment.md index d97530e..71d9d90 100644 --- a/docs/build/sdk/v2/environment.md +++ b/docs/build/sdk/v2/environment.md @@ -34,8 +34,24 @@ Create a `docker-compose.yml` file with the following content: ```yml:no-line-numbers services: + explorer: + build: + context: . + dockerfile: Dockerfile + platform: linux/amd64 + restart: unless-stopped + depends_on: + - scan-api + - http-proxy + ports: + - 3002:3002 + environment: + - NEXT_PUBLIC_REST_URL=http://localhost:3000 + - NEXT_PUBLIC_INDEXER_URL=http://localhost:3001 + scan-crawler: image: uniquenetwork/substrate-proxy-scan-crawler:master + platform: linux/amd64 restart: unless-stopped depends_on: - postgres @@ -46,6 +62,7 @@ services: scan-api: image: uniquenetwork/substrate-proxy-scan-api:master + platform: linux/amd64 restart: unless-stopped depends_on: - postgres @@ -60,6 +77,7 @@ services: http-proxy: image: uniquenetwork/substrate-proxy-http-proxy:master + platform: linux/amd64 restart: unless-stopped depends_on: - chain @@ -115,7 +133,6 @@ services: volumes: chain-data: scan-postgres: - ``` ### Starting the Stack From d56b3ff7ed96d30f51ff6a6d798a027cf999a74b Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Wed, 22 Oct 2025 23:11:18 +0500 Subject: [PATCH 3/4] Update environment documentation to include Simple Explorer UI and Docker command for container removal --- docs/build/sdk/v2/environment.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/build/sdk/v2/environment.md b/docs/build/sdk/v2/environment.md index 71d9d90..e8ab687 100644 --- a/docs/build/sdk/v2/environment.md +++ b/docs/build/sdk/v2/environment.md @@ -147,8 +147,14 @@ After starting the full development stack, you can access: - **HTTP Proxy (SDK endpoint)**: http://localhost:3000 - **Indexer API**: http://localhost:3001 +- **Simple explorer UI**: http://localhost:3002 - **Chain RPC**: ws://localhost:9833 - + +Run the following command to remove containers: + +```bash:no-line-numbers +docker compose down --volumes +``` ## Next Steps From dfc28a1239a4138bcfab4e37d98a7fd40c4e9ef7 Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Wed, 22 Oct 2025 23:29:28 +0500 Subject: [PATCH 4/4] Update Docker context for explorer service in environment documentation --- docs/build/sdk/v2/environment.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/build/sdk/v2/environment.md b/docs/build/sdk/v2/environment.md index e8ab687..729724a 100644 --- a/docs/build/sdk/v2/environment.md +++ b/docs/build/sdk/v2/environment.md @@ -36,7 +36,7 @@ services: explorer: build: - context: . + context: https://github.com/UniqueNetwork/unique-template.git#explorer dockerfile: Dockerfile platform: linux/amd64 restart: unless-stopped @@ -133,6 +133,7 @@ services: volumes: chain-data: scan-postgres: + ``` ### Starting the Stack