Merge pull request #120 from getmaxun/docker-hmr
feat: mount fe & be docker volumes
This commit is contained in:
@@ -52,9 +52,6 @@ services:
|
|||||||
# DEBUG: pw:api
|
# DEBUG: pw:api
|
||||||
# PWDEBUG: 1 # Enables debugging
|
# PWDEBUG: 1 # Enables debugging
|
||||||
CHROMIUM_FLAGS: '--disable-gpu --no-sandbox --headless=new'
|
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:
|
security_opt:
|
||||||
- seccomp=unconfined # This might help with browser sandbox issues
|
- seccomp=unconfined # This might help with browser sandbox issues
|
||||||
# Increase shared memory size for Chromium
|
# Increase shared memory size for Chromium
|
||||||
@@ -63,6 +60,10 @@ services:
|
|||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
- minio
|
- 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:
|
frontend:
|
||||||
build:
|
build:
|
||||||
@@ -71,6 +72,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
env_file: .env
|
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:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user