Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ services:
restart: unless-stopped

mongodb:
image: mongo:latest
image: mongo:8.0
container_name: mongodb
ports:
- "27017:27017"
Expand Down
8 changes: 5 additions & 3 deletions recipai-chart/templates/mongodb-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: mongodb
image: mongo:6.0
image: mongo:8.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 27017
Expand All @@ -28,9 +28,11 @@ spec:
memory: "512Mi"
cpu: "500m"
env:
- name: MONGO_INITDB_ROOT_USERNAME
- name: MONGO_HOST
- value: {{ .Values.services.mongodb }}:27017
- name: MONGO_USERNAME
value: {{ .Values.db.adminUsername }}
- name: MONGO_INITDB_ROOT_PASSWORD
- name: MONGO_PASSWORD
valueFrom:
secretKeyRef:
name: mongodb-secret
Expand Down
3 changes: 1 addition & 2 deletions server/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ spring:
uri: http://genai-service:8000
predicates:
- Path=/genai/**

data:
mongodb:
uri: ${MONGODB_URI:mongodb://admin:admin@127.0.0.1:27017/recipai?authSource=admin}
uri: mongodb://${MONGO_USERNAME:admin}:${MONGO_PASSWORD:admin}@${MONGO_HOST:127.0.0.1:27017}/recipai?authSource=admin