Docker Compose for React with Next.js in Development Mode

Tiempo de lectura: < 1 minuto Today I bring you a Docker Compose setup to run your React application with Next.js in development mode. The first thing you need to do is create this docker-compose.yml file: version: ‘3’ services: nextjs-app: build: . ports: – “3000:3000” volumes: – .:/app environment: – NODE_ENV=development Now create this Dockerfile: # Use a Node.js alpine image … Read more