Skip to content

Commit

Permalink
changed mongoose connect IBM#25
Browse files Browse the repository at this point in the history
  • Loading branch information
faizalak committed Sep 30, 2021
1 parent 6a718e6 commit c48535a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions accounts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ibmcom/ibmnode:latest
#FROM node:12-slim
#FROM ibmcom/ibmnode:latest
FROM node:12-slim
LABEL maintainer="fabdulkh@redhat.com"

#RUN apt-get install -y nodejs npm
Expand Down
16 changes: 8 additions & 8 deletions accounts/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ mongoose
.connect('mongodb://' + MONGODB_REPLICA_HOSTNAMES + '/', {
user: MONGODB_USER,
pass: MONGODB_PASSWORD,
// dbName: MONGODB_DBNAME,
// replicaSet: MONGODB_REPLICA_SET,
authSource: MONGODB_AUTH_DBNAME
// tls: false,
// tlsCAFile: MONGODB_CA_PATH,
// useCreateIndex: true,
// useNewUrlParser: true,
// useUnifiedTopology: true
dbName: MONGODB_DBNAME,
replicaSet: MONGODB_REPLICA_SET,
authSource: MONGODB_AUTH_DBNAME,
tls: false,
tlsCAFile: MONGODB_CA_PATH,
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true
})
.catch(error => {
console.log(error)
Expand Down

0 comments on commit c48535a

Please sign in to comment.