Skip to content

Commit eb9a0d5

Browse files
committed
docs(readme): update Docker section for dev flow and env setup
1 parent 5960aec commit eb9a0d5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,17 @@ MIT
143143

144144
### Development (hot reload)
145145
```bash
146-
# Build and start
147-
docker compose -f docker-compose.dev.yml up --build
146+
# Start dev container (no image build needed)
147+
docker compose -f docker-compose.dev.yml up
148148
# Then open http://localhost:3000
149149
```
150+
- Create `.env.local` in the project root with at least:
151+
```bash
152+
NEXTAUTH_SECRET=your_secure_secret
153+
NEXTAUTH_URL=http://localhost:3000
154+
GITHUB_CLIENT_ID=your_client_id
155+
GITHUB_CLIENT_SECRET=your_client_secret
156+
```
150157
- Code changes on your host are reflected inside the container.
151158
- Uses bind mounts and `npm run dev`.
152159

@@ -166,4 +173,4 @@ NEXTAUTH_SECRET=replace_with_secure_random
166173
GITHUB_CLIENT_ID=your_client_id
167174
GITHUB_CLIENT_SECRET=your_client_secret
168175
```
169-
The production image uses Next.js standalone output for a small runtime.
176+
Note: a default `NEXTAUTH_SECRET` is set only during the image build to allow Next.js to compile. You must provide real secrets at runtime via `.env` or your deployment platform.

0 commit comments

Comments
 (0)