Skip to content

chore(docker): self-contained Docker setup for the web app#24

Merged
aneebbaig merged 1 commit into
mainfrom
chore/oss-docker-docs
Jul 12, 2026
Merged

chore(docker): self-contained Docker setup for the web app#24
aneebbaig merged 1 commit into
mainfrom
chore/oss-docker-docs

Conversation

@aneebbaig

Copy link
Copy Markdown
Owner

Lets contributors run the whole app with:

cp .env.docker.example .env    # set the 3 secrets
docker compose up --build      # http://localhost:3000
  • apps/web/Dockerfile — Next.js build + prisma generate; entrypoint runs migrate deploy (retrying while Postgres boots) and optionally seeds.
  • Root docker-compose.yml — Postgres + web together; db keeps the same creds/port so it still backs next dev alone.
  • .env.docker.example template + README section.

Verified: docker build ./apps/web succeeds (Next.js compiles all routes, image exports).

Add a Dockerfile for apps/web (Next.js build + Prisma generate) with an
entrypoint that runs migrations (retrying while Postgres comes up) and
optionally seeds, plus a root docker-compose that brings up Postgres and
the web app together. Contributors can run the whole app with
`cp .env.docker.example .env && docker compose up --build`.

The db service keeps the same creds/port as the local dev database, so
it still backs `next dev` on its own. Documented in the README.
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
align Ignored Ignored Jul 12, 2026 10:52am

@aneebbaig aneebbaig merged commit 3b4aa30 into main Jul 12, 2026
4 checks passed
aneebbaig added a commit that referenced this pull request Jul 12, 2026
chore(docker): self-contained Docker setup for the web app
@aneebbaig aneebbaig deleted the chore/oss-docker-docs branch July 12, 2026 10:57
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.

1 participant