Skip to content

Containerize the Backend #95

@nourshoreibah

Description

@nourshoreibah

User Story

As a developer, I want to containerize the application so I can run the entire backend with one command

Description

Right now we have to manually start each lambda service and the database separately during development :( This is annoying

This ticket is to containerize the application using Docker so that running make up in the backend directory starts all lambda services and the database simultaneously.

Acceptance criteria

  • Create Dockerfile for each lambda service (users, projects, donors, expenditures, reports, auth)
  • Create docker-compose.yml in apps/backend/ that orchestrates all services and local postgres database
  • Create Makefile in apps/backend/ with make up, make down, and make logs commands
  • All lambda servers are running with their normal routing (we have logic to set routes already)
  • Database initializes with schema from db/db_setup.sql on first run
  • Environment variables configured via .env file or docker-compose
  • Test by running make up and verifying all endpoints are accessible
  • Document setup and usage in apps/backend/README.md

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions