Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions docs/build/sdk/v2/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -46,6 +62,7 @@ services:

scan-api:
image: uniquenetwork/substrate-proxy-scan-api:master
platform: linux/amd64
restart: unless-stopped
depends_on:
- postgres
Expand All @@ -60,6 +77,7 @@ services:

http-proxy:
image: uniquenetwork/substrate-proxy-http-proxy:master
platform: linux/amd64
restart: unless-stopped
depends_on:
- chain
Expand Down Expand Up @@ -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
Expand All @@ -115,7 +133,6 @@ services:
volumes:
chain-data:
scan-postgres:

```

### Starting the Stack
Expand All @@ -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
<!-- TODO: UI -->

Run the following command to remove containers:

```bash:no-line-numbers
docker compose down --volumes
```

## Next Steps

Expand Down