You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update compose stacks and shared networking
- Upgrade PostgreSQL 16 -> 17
- Upgrade CockroachDB v22.2.2 -> v22.2.15
- Upgrade substrate-gateway 2.5.0 -> 2.7.0
- Rename indexer CockroachDB service from 'db' to 'cockroachdb' to
avoid DNS collision when both stacks share a Docker network
- Add shared external network 'tfgrid_bknd' to both compose files so
the processor can reach the indexer gateway by service name
- Update INDEXER_ENDPOINT_URL default to http://gateway:8000/graphql
(Docker service name) instead of localhost:8888 (host port mapping)
- Remove obsolete 'version' field from both compose files
- Update production docs with shared network setup and env var changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/production.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,12 @@ The production stack has two independent layers:
15
15
16
16
## Run the Setup
17
17
18
+
Both compose stacks share a Docker network (`tfgrid_bknd`) so the processor can reach the indexer gateway by service name. Create it before starting either stack:
19
+
20
+
```bash
21
+
docker network create tfgrid_bknd
22
+
```
23
+
18
24
### 1. Indexer
19
25
20
26
Configure `indexer/.env`:
@@ -41,8 +47,8 @@ Configure `.env` in the project root:
|`WS_URL`| TFChain node WebSocket URL (used for RPC calls) |`ws://localhost:9944`|
50
+
|`INDEXER_ENDPOINT_URL`| Indexer GraphQL gateway URL. Use`http://gateway:8000/graphql` for Docker (shared network), `http://localhost:8888/graphql` for local dev |`http://gateway:8000/graphql`|
51
+
|`WS_URL`| TFChain node WebSocket URL (used for RPC calls) |`wss://tfchain.dev.grid.tf/ws`|
0 commit comments