# Development overrides: bind mounts for Next.js hot reload. # Loaded automatically by Docker Compose. Remove or rename to disable. services: nextjs: build: context: ./nextjs dockerfile: Dockerfile target: development args: NEXT_PUBLIC_DRUPAL_BASE_URL: https://cms.${DOMAIN} volumes: - ./nextjs:/app - nextjs-node-modules:/app/node_modules - nextjs-next-cache:/app/.next ports: - "9229:9229" environment: - NODE_ENV=production - HOSTNAME=0.0.0.0 - WATCHPACK_POLLING=false - NODE_OPTIONS=--inspect=0.0.0.0:9229 volumes: nextjs-node-modules: name: drupal-nextjs-node-modules nextjs-next-cache: name: drupal-nextjs-next-cache