Skip to content

Setup dev environment in Docker#725

Draft
scazan wants to merge 12 commits intodevfrom
docker
Draft

Setup dev environment in Docker#725
scazan wants to merge 12 commits intodevfrom
docker

Conversation

@scazan
Copy link
Collaborator

@scazan scazan commented Mar 9, 2026

Sets up our Development environment in Docker so that we can easily spin up dev instances that are isolated from each other.

scazan added 9 commits March 7, 2026 11:13
Adds a Dockerfile at the repo root using node:22-slim, installs pnpm@9.15.4
via corepack and supabase@2.71.0 via npm. Copies all workspace package.json
files and runs pnpm install --frozen-lockfile for a cached dependency layer.
Documents Docker socket passthrough requirement for the supabase service.
Adds .env.docker with well-known Supabase local dev defaults (anon key,
service-role key, JWT secret), REDIS_URL, and APP_PORT=3100. Adds
.env.docker.example with inline comments explaining each variable.
No production secrets in either file.
…oad, and configurable port

Adds docker-compose.yml defining app, api, supabase, and redis services.
app and api use bind-mounts for hot-reload with named volumes protecting
node_modules and .next caches. supabase mounts Docker socket and runs
against supabase-dev.toml. APP_PORT defaults to 3100. All services share
the op-dev bridge network.
…Docker

Adds SUPABASE_URL=http://supabase:54321 to .env.docker for server-side
Next.js code running inside the app container to reach Supabase via the
Docker network. supabase-dev.toml already configures seed.sql seeding
and all Supabase ports (54321-54324) are mapped in docker-compose.yml.
Adds docker/README.md with a Docker Dev Environment section covering
prerequisites, quick start command, service URLs, port customization
(APP_PORT), hot-reload details, and teardown commands (with and without -v).
@vercel
Copy link
Contributor

vercel bot commented Mar 9, 2026

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

Project Deployment Actions Updated (UTC)
app Ready Ready Preview Mar 9, 2026 10:10am

Request Review

DATABASE_URL=postgresql://postgres:postgres@dind:54322/postgres

NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRFA0NiK7CcyFDME5Q8x4vRBJvHBNNT8ue6kDjFHnNE
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hj04zWl196z2-SBcA
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test keys to be clear :)

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