chore: update compose stacks and shared networking#218
Open
sameh-farouk wants to merge 1 commit intomaster-add-db-indexesfrom
Open
chore: update compose stacks and shared networking#218sameh-farouk wants to merge 1 commit intomaster-add-db-indexesfrom
sameh-farouk wants to merge 1 commit intomaster-add-db-indexesfrom
Conversation
e92e002 to
2a3a713
Compare
7ffbc98 to
c6e9293
Compare
2a3a713 to
d93b222
Compare
a8363a8 to
3ae18d2
Compare
- 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) - Bind database ports to localhost only (PostgreSQL 5432, CockroachDB 26257, CockroachDB admin 8080) to prevent unauthorized access - 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>
d93b222 to
1e96cca
Compare
3ae18d2 to
be49aed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates both Docker Compose stacks with version bumps and a shared network for seamless inter-stack communication.
Version upgrades
Shared networking
tfgrid_bknd)http://gateway:8000/graphql) instead of requiring host bridge IP workaroundsINDEXER_ENDPOINT_URLdefault updated in.envDNS collision fix
dbtocockroachdbto avoid DNS collision with the processor's PostgreSQLdbservice on the shared networksetup_db.shhost reference accordinglyCleanup
versionfield from both compose filesDocs
docs/production.mdwith shared network setup step and env var changesSetup
Before starting either stack, create the shared network:
Test plan