Skip to content

Commit

Permalink
modified mongo url
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289029 committed Apr 7, 2024
1 parent d23ad91 commit 8c04dc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Update OpenAPI configuration
run: |
DEPLOY_HOST=${{ secrets.DEPLOY_HOST }}
sed -i "s/20.26.114.153/${DEPLOY_HOST}/g" gatewayservice/openapi.yaml
sed -i "s/SOMEIP/${DEPLOY_HOST}/g" gatewayservice/openapi.yaml
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

userservice:
container_name: userservice-${teamname:-defaultASW}
Expand All @@ -37,7 +37,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

questionsgenerator:
container_name: questionsgenerator-${teamname:-defaultASW}
Expand All @@ -51,7 +51,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

record:
container_name: record-${teamname:-defaultASW}
Expand All @@ -66,7 +66,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

gatewayservice:
container_name: gatewayservice-${teamname:-defaultASW}
Expand Down
2 changes: 0 additions & 2 deletions users/authservice/auth-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ app.use(express.json());
// Connect to MongoDB
const mongoURI = process.env.MONGODB_URI;

console.log("URL: ", mongoURI);

mongoose.connect(mongoURI, { useNewUrlParser: true, useUnifiedTopology: true});
//const userCollection = mongoose.connection.useDb("WIQ").collection("users");

Expand Down

0 comments on commit 8c04dc1

Please sign in to comment.