Skip to content

feat(docker): dev container so the app runs with only Docker#94

Merged
WhiteMuush merged 1 commit into
mainfrom
feat/docker-dev
Jun 26, 2026
Merged

feat(docker): dev container so the app runs with only Docker#94
WhiteMuush merged 1 commit into
mainfrom
feat/docker-dev

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

What

Add a development container so the app can run with only Docker installed, no Node or nvm on the host.

  • Dockerfile: dev image (Node 22 + openssl for Prisma), deps installed in the image, runs next dev.
  • .dockerignore: keeps node_modules/.next/.git out of the build context.
  • compose.yml: adds an app service wired to db, source bind-mounted, node_modules kept in the container, migrations applied on start. DATABASE_URL is assembled at runtime to target the db service (never stored inline).

Usage

git pull
make env        # or make doctor (creates .env.local)
docker compose up

Verified

docker compose up brings up app + db, migrations applied, localhost:3000 responds 307.

Note

Building requires BuildKit/buildx. On a host without it, use DOCKER_BUILDKIT=0 docker compose build.

@WhiteMuush WhiteMuush merged commit e27af0d into main Jun 26, 2026
11 checks passed
@WhiteMuush WhiteMuush deleted the feat/docker-dev branch June 26, 2026 22:38
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