diff --git a/docs/build/sdk/v2/environment.md b/docs/build/sdk/v2/environment.md index 85eaafb..e8ab687 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 @@ -94,7 +112,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 @@ -115,7 +133,6 @@ services: volumes: chain-data: scan-postgres: - ``` ### Starting the Stack @@ -130,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