diff --git a/compose-files/docker-compose.yml b/compose-files/docker-compose.yml index c0192b1..f25938a 100644 --- a/compose-files/docker-compose.yml +++ b/compose-files/docker-compose.yml @@ -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" @@ -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" @@ -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" @@ -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 @@ -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 diff --git a/envs/default.env b/envs/default.env index 8ae38a8..79108f5 100644 --- a/envs/default.env +++ b/envs/default.env @@ -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 diff --git a/scripts/mongo_setup.sh b/scripts/mongo_setup.sh index c21e9b7..b458c17 100644 --- a/scripts/mongo_setup.sh +++ b/scripts/mongo_setup.sh @@ -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,