From 4e56cccea54b555112f308d7b6f6175cd512cb77 Mon Sep 17 00:00:00 2001 From: Abdelrahman mostafa Date: Mon, 23 Sep 2024 02:20:58 +0300 Subject: [PATCH] watch command support --- docker-compose.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index d3892e5c..69316c6e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -27,6 +27,15 @@ services: networks: - perplexica-network restart: unless-stopped + develop: + watch: + - action: sync + path: ./backend + target: /home/perplexica + ignore: + - node_modules/ + - action: rebuild + path: backend.dockerfile perplexica-frontend: build: @@ -42,6 +51,16 @@ services: networks: - perplexica-network restart: unless-stopped + develop: + watch: + - action: sync + path: ./frontend + target: /app + ignore: + - node_modules/ + - .next/ + - action: rebuild + path: app.dockerfile networks: perplexica-network: