From 25e955f7fa95834ef27838510353625ed900771d Mon Sep 17 00:00:00 2001 From: "Nicholas Blair (wsl@nblair2-38373s)" Date: Fri, 12 Sep 2025 08:43:02 -0600 Subject: [PATCH 1/2] fix: docker-compose, volumes don't overwrite UI currently, mounting all of the working directory to the app dir in the container means that the UI built in the container at `/usr/src/app/plugins/magma` is overwritten by what is on the host. If the UI is not built on the host, the container and docker-compose will not work as expected. This change adds a volume to protect the contents of the built UI in the container from being overwritten by the host's content in `/usr/src/app/plugins/magma` --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index de739a067..634ff8cff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: TZ: "UTC" # Timezone to use in container VARIANT: "full" image: caldera:latest + container_name: caldera ports: - "8888:8888" - "8443:8443" @@ -20,4 +21,5 @@ services: - "2222:2222" volumes: - ./:/usr/src/app + - /usr/src/app/plugins/magma # To avoid overwriting the already built UI command: --log DEBUG From f5d57bc71883611228109e24688bf99a0dbad9ff Mon Sep 17 00:00:00 2001 From: nblair2 <134428428+nblair2@users.noreply.github.com> Date: Mon, 29 Sep 2025 17:43:44 -0600 Subject: [PATCH 2/2] Update docker-compose.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 634ff8cff..1147ef27b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,5 +21,5 @@ services: - "2222:2222" volumes: - ./:/usr/src/app - - /usr/src/app/plugins/magma # To avoid overwriting the already built UI + - /usr/src/app/plugins/magma # Anonymous volume to preserve built UI assets from being overwritten by host mount command: --log DEBUG