Skip to content

Commit c2adf11

Browse files
authored
Fix setup (#193)
* Update autoseal finalization delay in environment documentation * add simple explorer to docker configuration * Update environment documentation to include Simple Explorer UI and Docker command for container removal
1 parent d6caf4e commit c2adf11

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

docs/build/sdk/v2/environment.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,24 @@ Create a `docker-compose.yml` file with the following content:
3434
```yml:no-line-numbers
3535
services:
3636
37+
explorer:
38+
build:
39+
context: .
40+
dockerfile: Dockerfile
41+
platform: linux/amd64
42+
restart: unless-stopped
43+
depends_on:
44+
- scan-api
45+
- http-proxy
46+
ports:
47+
- 3002:3002
48+
environment:
49+
- NEXT_PUBLIC_REST_URL=http://localhost:3000
50+
- NEXT_PUBLIC_INDEXER_URL=http://localhost:3001
51+
3752
scan-crawler:
3853
image: uniquenetwork/substrate-proxy-scan-crawler:master
54+
platform: linux/amd64
3955
restart: unless-stopped
4056
depends_on:
4157
- postgres
@@ -46,6 +62,7 @@ services:
4662
4763
scan-api:
4864
image: uniquenetwork/substrate-proxy-scan-api:master
65+
platform: linux/amd64
4966
restart: unless-stopped
5067
depends_on:
5168
- postgres
@@ -60,6 +77,7 @@ services:
6077
6178
http-proxy:
6279
image: uniquenetwork/substrate-proxy-http-proxy:master
80+
platform: linux/amd64
6381
restart: unless-stopped
6482
depends_on:
6583
- chain
@@ -94,7 +112,7 @@ services:
94112
--dev
95113
--idle-autoseal-interval 2000
96114
--disable-autoseal-on-tx
97-
--autoseal-finalization-delay 2000
115+
--autoseal-finalization-delay 1
98116
--state-pruning archive
99117
--blocks-pruning archive
100118
--base-path /unique/data
@@ -115,7 +133,6 @@ services:
115133
volumes:
116134
chain-data:
117135
scan-postgres:
118-
119136
```
120137

121138
### Starting the Stack
@@ -130,8 +147,14 @@ After starting the full development stack, you can access:
130147

131148
- **HTTP Proxy (SDK endpoint)**: http://localhost:3000
132149
- **Indexer API**: http://localhost:3001
150+
- **Simple explorer UI**: http://localhost:3002
133151
- **Chain RPC**: ws://localhost:9833
134-
<!-- TODO: UI -->
152+
153+
Run the following command to remove containers:
154+
155+
```bash:no-line-numbers
156+
docker compose down --volumes
157+
```
135158

136159
## Next Steps
137160

0 commit comments

Comments
 (0)