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
- Multi-stage
Dockerfile: builder stage (npm install + build) + runner stage (node:20-alpine)
docker-compose.yml: lens service + postgres:15 service with DATABASE_URL wired between them
- Volume for Postgres data persistence
- 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
Drips Wave · Complexity: Trivial · 100 points
Comment below to request assignment. PR must include Closes #[this issue].
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
Dockerfilefor the Lens service and adocker-compose.ymlthat starts Lens + Postgres together.Key files
Dockerfile— create at repo rootdocker-compose.yml— create at repo rootREADME.md— add Docker quickstart sectionSuggested execution
Dockerfile: builder stage (npm install + build) + runner stage (node:20-alpine)docker-compose.yml:lensservice +postgres:15service withDATABASE_URLwired between themGET /statusmust return 200 before lens is marked healthyExample commit message:
ci: add Dockerfile and docker-compose for local developmentAcceptance criteria
docker compose upstarts both servicesGET /statusreturns 200 after startup