Fix : various multiplayer related fixes

This commit is contained in:
2024-07-03 23:27:33 +02:00
parent dc9b00284b
commit 0283663102
7 changed files with 113 additions and 40 deletions
+4 -2
View File
@@ -1,7 +1,6 @@
version: '3.1'
services:
mongo:
image: docker.io/mongo
restart: always
@@ -10,11 +9,14 @@ services:
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
# entrypoint: bash -c "chown 999:999 /opt/keyfile/mongodb-keyfile && chmod 400 /opt/keyfile/mongodb-keyfile && exec docker-entrypoint.sh $$@"
# entrypoint: bash -c "chown 999:999 /opt/keyfile/mongodb-keyfile && chmod 400 /opt/keyfile/mongodb-keyfile && exec docker-entrypoint.sh $$@"
command: mongod --replSet rs0 --keyFile /opt/keyfile/mongodb-keyfile
volumes:
- ./:/opt/keyfile/
- mongo:/data/db
groups:
- 999
volumes:
mongo:
# 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'}]})"