Issue
I have a docker-compose.yml file with several services, two of them are Angular and Django, the problem is when I change the code in the Angular container the changes are not reflected automatically but instead it works in Django.
Dockerfile-angular:
FROM node:14
WORKDIR /usr/src/app
COPY ./frontend/project/package.json .
RUN nom install
COPY ./frontend/project .
CMD npm start
docker-compose.yml
...
django:
...
volumes:
- ./backend/project:/youngtalentreturn
angular:
...
volumes:
- ./frontend/project/src:/usr/src/app/src
- ./frontend/project/node_modules:/usr/src/app/node_modules
Anybody cloud help me please ?
Solution
Solved with poll param on start command
-- poll 2000
Answered By - Alberto Sanmartin Martinez
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.