enhancement: Docker image consolidation

This commit is contained in:
pluja
2023-11-21 17:29:16 +01:00
parent 7dc703c335
commit 8dca6cc897
12 changed files with 353 additions and 308 deletions

View File

@@ -32,7 +32,8 @@ func NewMongoDb() *MongoDb {
}
// Set auth method to PLAIN if using FerretDB
if os.Getenv("FERRETDB_MONGO_URL") != "" {
if os.Getenv("FERRETDB_ENABLED") != "" {
log.Printf("FerretDB enabled, setting auth mechanism to PLAIN...")
credentials.AuthMechanism = "PLAIN"
}