version: '3' services: api: build: context: . target: development volumes: - ./:/usr/src/app - /usr/src/app/node_modules # prevent node_modules folder to be overwritten by host machine ports: - 4000:4000 command: npm run dev # ovverride the RUN command specified in the Dockerfile for development purposes