version: "3.9" # Development overrides # Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up services: app: build: target: deps # stop before the production build step command: npm run dev volumes: # Mount source for hot reload — node_modules stays inside the container - .:/app - /app/node_modules - /app/.next environment: NODE_ENV: development ports: - "3000:3000" # expose directly in dev (no nginx needed) postgres: ports: - "5432:5432" # expose for local DB tools (TablePlus, psql, etc.) redis: ports: - "6379:6379" # expose for local Redis inspection # Disable nginx in dev nginx: profiles: - production-only