Thank you for the fast response! I’ve also mounted the mongot volume from your example, but I’m running into the same keyfile issue (empty /configdb and /mongot folders while /data while is successfully mounted) Here is the log:
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.981Z"},"s":"I",  "c":"CONTROL",  "id":5760901, "ctx":"main","msg":"Applied --setParameter options","attr":{"serverParameters":{"mongotHost":{"default":"","value":"localhost:27027"},"searchIndexManagementHostAndPort":{"default":"","value":"localhost:27027"}}}}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.986+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"CONTROL",  "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set at least one of the related parameters","attr":{"relatedParameters":["tcpFastOpenServer","tcpFastOpenClient","tcpFastOpenQueueSize"]}}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"ACCESS",   "id":20254,   "ctx":"main","msg":"Read security file failed","attr":{"error":{"code":30,"codeName":"InvalidPath","errmsg":"Error reading file /data/configdb/keyfile: No such file or directory"}}}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.987+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.988+00:00"},"s":"I",  "c":"SHARDING", "id":5847201, "ctx":"main","msg":"Balancer command scheduler stop requested"}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.988+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.988+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
2025-06-10 12:56:55 {"t":{"$date":"2025-06-10T16:56:55.988+00:00"},"s":"F",  "c":"CONTROL",  "id":20575,   "ctx":"main","msg":"Error creating service context","attr":{"error":"Location5579201: Unable to acquire security key[s]"}}
2025-06-10 12:56:55 {"time":"2025-06-10T16:56:55.92299058Z","level":"DEBUG","msg":"starting server..."}
2025-06-10 12:58:55 Error: error checking mongod: error pinging: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp [::1]:27017: connect: connection refused }, ] }
2025-06-10 12:58:55 Usage:
2025-06-10 12:58:55   runner server [flags]
2025-06-10 12:58:55 
2025-06-10 12:58:55 Flags:
2025-06-10 12:58:55   -h, --help   help for server
2025-06-10 12:58:55 
2025-06-10 12:58:55 panic: error checking mongod: error pinging: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp [::1]:27017: connect: connection refused }, ] }
2025-06-10 12:58:55 
2025-06-10 12:58:55 goroutine 1 [running]:
2025-06-10 12:58:55 main.main()
2025-06-10 12:58:55 /app/cmd/runner/main.go:65 +0x165
For some context, I’m switching from using the official mongo image to the Atlas local and mounting the same data volume, could there be some metafiles there that are conflicting with the base image setup?