Further adjustments to docker-compose for testing

This commit is contained in:
Fred Boniface 2022-12-20 22:49:34 +00:00
parent 3add0ccb52
commit 2dfd01cdf5
2 changed files with 9 additions and 6 deletions

View File

@ -1,10 +1,15 @@
version: '3.1'
services:
mongo:
image: mongo
image: mongo:6.0-focal
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: owl
MONGO_INITDB_ROOT_PASSWORD: twittwoo
volumes:
- mongo-test:/var/lib/mysql
ports:
- 27017:27017
volumes:
mongo-test:

View File

@ -1,14 +1,12 @@
// General DB Access aswell as dbInit tests etc.
const { MongoClient } = require('mongodb');
const dbUser = process.env.OWL_DB_USER || "owl"
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"
const { MongoClient } = require('mongodb');
async function getCrs(tiploc) {