Fix : add transaction

This commit is contained in:
2024-06-27 19:40:15 +02:00
parent 224bd71a2c
commit d6ab8bd148
7 changed files with 121 additions and 34 deletions
+5
View File
@@ -10,3 +10,8 @@ services:
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
command: mongod --replSet rs0 --keyFile /opt/keyfile/mongodb-keyfile
volumes:
- ./:/opt/keyfile/
# docker run --rm -it --network=host --name mongoContainer mongo:latest mongosh mongodb://127.0.0.1:27017 -u root -p example --eval "rs.initiate({'_id':'rs0', members: [{'_id':1, 'host':'127.0.0.1:27017'}]})"