version: '3.7' services: # Before modifying this file, please refer to: # https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md base: build: context: . dockerfile: Dockerfile dev: container_name: dev extends: service: base command: ["npm", "run", "serve"] ports: - "8080:8080" environment: - CHOKIDAR_USEPOLLING=true volumes: - ./:/app deploy: resources: reservations: memory: ${DOCKER_MEMORY} cpus: '${DOCKER_CPUS}'