forked from thisisouvik/trustlend-stellar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 937 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (27 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: '3.8'
services:
web:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
# Mount the local codebase to the container for hot-reloading
- .:/app
# Use an anonymous volume for node_modules to avoid Windows/Linux conflicts
- /app/node_modules
- /app/.next
env_file:
- .env.local
environment:
- NODE_ENV=development
# Enable polling for file changes (required for Windows hot-reload to work consistently)
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
# Note on Supabase:
# This setup binds the Next.js app to your local machine.
# If you are running the local Supabase CLI (`npx supabase start`),
# you should set your NEXT_PUBLIC_SUPABASE_URL in `.env.local` to
# `http://host.docker.internal:54321` (or whichever port your local Supabase uses)
# so the Docker container can reach it.