watch command support

This commit is contained in:
Abdelrahman mostafa 2024-09-23 02:20:58 +03:00
parent 1fcd64ad42
commit 4e56cccea5

View file

@ -27,6 +27,15 @@ services:
networks: networks:
- perplexica-network - perplexica-network
restart: unless-stopped restart: unless-stopped
develop:
watch:
- action: sync
path: ./backend
target: /home/perplexica
ignore:
- node_modules/
- action: rebuild
path: backend.dockerfile
perplexica-frontend: perplexica-frontend:
build: build:
@ -42,6 +51,16 @@ services:
networks: networks:
- perplexica-network - perplexica-network
restart: unless-stopped restart: unless-stopped
develop:
watch:
- action: sync
path: ./frontend
target: /app
ignore:
- node_modules/
- .next/
- action: rebuild
path: app.dockerfile
networks: networks:
perplexica-network: perplexica-network: