Skip to content

Add Dockerfile and docker-compose for local development #31

Description

@Miracle656

Background

Setting up Lens locally requires installing Node.js, Postgres, configuring env vars, and running Prisma migrations manually. This is a significant barrier for new contributors. A Dockerfile + docker-compose setup would let anyone start contributing with a single command.

What to build

A Dockerfile for the Lens service and a docker-compose.yml that starts Lens + Postgres together.

Key files

  • Dockerfile — create at repo root
  • docker-compose.yml — create at repo root
  • README.md — add Docker quickstart section

Suggested execution

git checkout -b ci/docker-compose-local-dev
  1. Multi-stage Dockerfile: builder stage (npm install + build) + runner stage (node:20-alpine)
  2. docker-compose.yml: lens service + postgres:15 service with DATABASE_URL wired between them
  3. Volume for Postgres data persistence
  4. Health check: GET /status must return 200 before lens is marked healthy

Example commit message:
ci: add Dockerfile and docker-compose for local development

Acceptance criteria

  • docker compose up starts both services
  • GET /status returns 200 after startup
  • Prisma migrations run automatically on startup
  • README quickstart section updated

Drips Wave · Complexity: Trivial · 100 points
Comment below to request assignment. PR must include Closes #[this issue].

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions