From 001bacb5969f721b6d71564f47c5f677ed0ea1ac Mon Sep 17 00:00:00 2001 From: Priyanka Shukla Date: Mon, 4 Nov 2024 19:56:35 +0530 Subject: [PATCH] feat: volume mounts for backend and frontend services --- docker-compose.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 50983684..1aeefd26 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,9 +52,6 @@ services: # DEBUG: pw:api # PWDEBUG: 1 # Enables debugging CHROMIUM_FLAGS: '--disable-gpu --no-sandbox --headless=new' - volumes: - # - /tmp/.X11-unix:/tmp/.X11-unix - - /var/run/dbus:/var/run/dbus # Add this for D-Bus support security_opt: - seccomp=unconfined # This might help with browser sandbox issues # Increase shared memory size for Chromium @@ -63,6 +60,10 @@ services: - postgres - redis - minio + volumes: + - ./server:/app/server # Mount server source code for hot reloading + - ./maxun-core:/app/maxun-core # Mount maxun-core for any shared code updates + - /var/run/dbus:/var/run/dbus frontend: build: @@ -71,6 +72,9 @@ services: ports: - "5173:5173" env_file: .env + volumes: + - ./:/app # Mount entire frontend app directory for hot reloading + - /app/node_modules # Anonymous volume to prevent overwriting node_modules depends_on: - backend