Skip to content

Commit

Permalink
updating volume mapping for the mythic_server container
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Jan 22, 2024
1 parent e4c3d76 commit d5c8664
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mythic_CLI/src/cmd/internal/serviceMetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d5c8664

Please sign in to comment.