I am using Nestjs Mono repo and I am trying to live reload with docker-compose.
Here is my Dockerfile
FROM node:16
ENV NODE_ENV=development
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
And this is my service in docker-compose.yml
auth:
build:
context: ./
dockerfile: ./apps/auth/Dockerfile.dev
volumes:
- ./apps:/app/apps
command: npm start
Here is the start command
nest start --watch
Service is working but it is not reloading on changes
Live reloading works properly on my local machine and in container if I don't use volume.
Nestjs version: 8.1.5
Update:
I have opened an issue of nestjs/cli