Description
Add multi-stage Dockerfile for the backend and docker-compose with Postgres for local dev.
Requirements and context
- Non-root user in image.
- Healthcheck uses
/health.
Suggested execution
- Fork the repository and create a branch (example below).
- Implement changes in StreamPay-Backend (TypeScript / Express per
package.json).
- Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b chore/docker-compose-backend
Implementation targets
Dockerfile, docker-compose.yml at repo or StreamPay-Backend/.
Tests and validation
-
CI optional: build image only.
-
Run npm test and npm run lint in StreamPay-Backend.
-
Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
- Target minimum 95% test coverage on new or changed backend code (or justify gaps).
- Clear documentation (OpenAPI / README / inline docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
chore(backend): Docker and compose for local development
Description
Add multi-stage Dockerfile for the backend and docker-compose with Postgres for local dev.
Requirements and context
/health.Suggested execution
package.json).Implementation targets
Dockerfile,docker-compose.ymlat repo orStreamPay-Backend/.Tests and validation
CI optional: build image only.
Run
npm testandnpm run lintinStreamPay-Backend.Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
Example commit message