Skip to content

chore: add Docker local development stack#43

Open
ProtonsAndElectrons wants to merge 1 commit into
SmartDropLabs:mainfrom
ProtonsAndElectrons:codex/docker-compose-dev
Open

chore: add Docker local development stack#43
ProtonsAndElectrons wants to merge 1 commit into
SmartDropLabs:mainfrom
ProtonsAndElectrons:codex/docker-compose-dev

Conversation

@ProtonsAndElectrons

Copy link
Copy Markdown
Contributor

Summary

  • Add a production-oriented multi-stage Dockerfile using Node 20 Alpine and production dependencies only.
  • Add docker-compose.yml for local API + Redis + Postgres with health checks, API port 4000, and ./src hot reload via npm run dev.
  • Add .dockerignore, gitignore docker-compose.override.yml, and document the Docker quick start in the README.
  • Add DATABASE_URL to .env.example for the local compose stack/future persistence features.

Fixes #15

Validation

  • npm test -- --runInBand (45 passed)
  • docker compose config --quiet
  • git diff --cached --check

Note: docker build -t smartdrop-backend:test . could not run in this local environment because Docker Desktop's Linux engine is not running (dockerDesktopLinuxEngine pipe unavailable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Docker and docker-compose for local development

1 participant