From d5c866410f8c7d1604fe51c05d37a5c4b16c7bf7 Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Mon, 22 Jan 2024 09:34:00 -0600 Subject: [PATCH] updating volume mapping for the mythic_server container --- Mythic_CLI/src/cmd/internal/serviceMetadata.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mythic_CLI/src/cmd/internal/serviceMetadata.go b/Mythic_CLI/src/cmd/internal/serviceMetadata.go index 3b7ca0fd4..5c1635425 100644 --- a/Mythic_CLI/src/cmd/internal/serviceMetadata.go +++ b/Mythic_CLI/src/cmd/internal/serviceMetadata.go @@ -474,12 +474,14 @@ func AddMythicService(service string) { pStruct["environment"] = environment } if !mythicEnv.GetBool("mythic_server_use_volume") { + // mount the entire directory in so that you can see changes to code too pStruct["volumes"] = []string{ "./mythic-docker/src:/usr/src/app", } } else { + // when using a volume for Mythic server, just have it save off the files pStruct["volumes"] = []string{ - "mythic_server_volume:/usr/src/app", + "mythic_server_volume:/usr/src/app/files", } } if _, ok := volumes["mythic_server"]; !ok {