Repository navigation
Add Docker Compose for local Postgres + Redis - #61
Merged
Muhammadcodes112 merged 1 commit intoJul 10, 2026
Merged
Muhammadcodes112 merged 1 commit into
Muhammadcodes112 merged 1 commit into
Conversation
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.
Problem
The backend's
.env.exampledocumentsDATABASE_URLandREDIS_URL, but there was no local way to stand up those services. As a result,apps/backend/src/services/stellar.tsfalls back to an in-memoryMapfor wallet storage, since there's nowhere to persist to. This blocks backend work on wallets, transaction history, and conversation state, and forces contributors to depend on a cloud database just to develop locally.Solution
docker-compose.ymlat the repo root definingpostgres:16andredis:7services, with credentials matching the defaults already documented inapps/backend/.env.example(hashport/hashport/hashportfor Postgres, no-auth Redis on the default port).postgres-data,redis-data) so data survives container restarts.pg_isreadyfor Postgres,redis-cli pingfor Redis) sodocker compose upreports readiness.package.jsonscripts:pnpm dev:infra(starts the containers in the background) andpnpm dev:infra:down(stops them).CONTRIBUTING.md's Setup section to include thepnpm dev:infrastep and a note that the example env vars already match the compose defaults.closes #1