Closed dufu-byte closed 2 months ago
What I'm doing now
services: mongo-7.0.0-server: image: mongodb/mongodb-community-server:7.0.0-ubi8 container_name: mongo-7.0.0-server restart: always privileged: true environment: - originalArgOne=mongod - MONGO_INITDB_ROOT_USERNAME=zzroot - MONGO_INITDB_ROOT_PASSWORD=111111111111111 ports: - 20017:27017 volumes: - ./db:/data/db - ./configdb/mongod.conf:/data/configdb/mongod.conf - ./mongodbLog:/var/log/mongodb/ command: - --wiredTigerCacheSizeGB - '1.5'
Is there another way?
https://github.com/docker-library/mongo/blob/9668538655744192b58d750c167932bbd7743899/7.0/docker-entrypoint.sh#L247C1-L247C36
I remember version 4.4 didn't need this to create users.
What I'm doing now
Is there another way?