Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

BC-7461 - upgrade to mongo 6 #73

Merged
merged 4 commits into from
Jul 10, 2024
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
10 changes: 5 additions & 5 deletions compose-files/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
### Schul-Cloud Server
###
mongodb-primary:
image: mongo:5.0.26 ## change tag in version.env
image: mongo:6.0.16
container_name: mongodb-primary
ports:
- "27017:27017"
Expand All @@ -34,7 +34,7 @@ services:
command: --bind_ip_all --replSet rs0

mongodb-secondary:
image: mongo:5.0.26 ## change tag in version.env
image: mongo:6.0.16
container_name: mongodb-secondary
ports:
- "27017"
Expand All @@ -45,7 +45,7 @@ services:
command: --bind_ip_all --replSet rs0

mongodb-arbiter:
image: mongo:5.0.26 ## change tag in version.env
image: mongo:6.0.16
container_name: mongodb-arbiter
ports:
- "27017"
Expand All @@ -56,7 +56,7 @@ services:
command: --bind_ip_all --replSet rs0

mongosetup:
image: mongo:5.0.26
image: mongo:6.0.16
depends_on:
- mongodb-primary
- mongodb-secondary
Expand All @@ -67,7 +67,7 @@ services:
entrypoint: [ "bash", "/scripts/mongo_setup.sh" ]

redis:
image: redis:${REDIS_DOCKER_TAG:-latest} ## change tag in version.env
image: redis:${REDIS_DOCKER_TAG:-latest}
container_name: redis
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
Expand Down
2 changes: 1 addition & 1 deletion envs/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
COMPOSE_FILES_PATH=./compose-files
POSTGRES_DOCKER_TAG=11.9
REDIS_DOCKER_TAG=6.0.8
MONGO_DOCKER_TAG=5.0.26
MONGO_DOCKER_TAG=6.0.16
RABBITMQ_DOCKER_TAG=3.8.9-management
4 changes: 2 additions & 2 deletions scripts/mongo_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
sleep 10

echo SETUP.sh time now: `date +"%T" `
mongo --host mongodb-primary:27017 --eval 'rs.initiate({_id: "rs0", members: [{_id: 0, host: "mongodb-primary:27017" }]})'
mongo --host mongodb-primary:27017 << EOF
mongosh --host mongodb-primary:27017 --eval 'rs.initiate({_id: "rs0", members: [{_id: 0, host: "mongodb-primary:27017" }]})'
mongosh --host mongodb-primary:27017 << EOF
var cfg = {
"_id": "rs0",
"version": 1,
Expand Down
Loading