Update to use Mongo vs Maria

This commit is contained in:
Fred Boniface 2022-12-20 19:16:23 +00:00
parent df2c449958
commit 3add0ccb52
3 changed files with 7 additions and 7 deletions

View File

@ -6,5 +6,5 @@ services:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_ROOT_USERNAME: owl
MONGO_INITDB_ROOT_PASSWORD: twittwoo

View File

@ -67,8 +67,8 @@ The app is designed to be run within Kubernetes or within a Docker container, as
|:-:|:-----:|:------:|:-----:|
|OWL_SRV_PORT|8460|NO|Web Server Port|
|OWL_SRV_LISTEN|0.0.0.0|NO|Web Server Listen Address|
|OWL_DB_USER||YES|Database Username|
|OWL_DB_PASS||YES|Database Password|
|OWL_DB_USER|owl|NO|Database Username|
|OWL_DB_PASS|twittwoo|NO|Database Password - Do not leave as default in production|
|OWL_DB_NAME|owlboard|NO|Database Name|
|OWL_DB_PORT|27017|NO|Database Server Port|
|OWL_DB_HOST|database|NO|Database Server Host|

View File

@ -1,10 +1,10 @@
// General DB Access aswell as dbInit tests etc.
const database = require( '../utils/dbinit.utils' )
const { MongoClient } = require('mongodb');
const dbUser = process.env.OWL_DB_USER || "owl"
const dbPass = process.env.OWL_DB_PASS || ""
const dbPass = process.env.OWL_DB_PASS || "twittwoo"
const dbName = process.env.OWL_DB_NAME || "owlboard"
const dbPort = process.env.OWL_DB_PORT || 27017
const dbHost = process.env.OWL_DB_HOST || "database"
@ -23,5 +23,5 @@ async function checkCrs(crs) {
}
module.export = {
readQuery,
}