Skip to content

Commit 524f3ae

Browse files
authored
Merge pull request #113 from AET-DevOps25/feature/convert-server-to-ms
Fix mongodb configuration
2 parents 52f70c6 + 0c28291 commit 524f3ae

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

recipai-chart/templates/mongodb/mongodb-deployment.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ spec:
2828
memory: "512Mi"
2929
cpu: "500m"
3030
env:
31+
- name: MONGO_INITDB_DATABASE
32+
value: "recipai"
3133
- name: MONGO_HOST
3234
value: {{ .Values.services.mongodb }}:27017
33-
- name: MONGO_USERNAME
35+
- name: MONGO_INITDB_ROOT_USERNAME
3436
value: {{ .Values.db.adminUsername }}
35-
- name: MONGO_PASSWORD
37+
- name: MONGO_INITDB_ROOT_PASSWORD
3638
valueFrom:
3739
secretKeyRef:
3840
name: mongodb-secret

server/chat/src/main/resources/application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ spring:
55
name: chat
66
data:
77
mongodb:
8-
uri: mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@mongodb-service:27017/admin
8+
uri: mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@mongodb-service:27017/recipai?authSource=admin
99
server:
1010
port: 8082

0 commit comments

Comments
 (0)