Based off the normal "mongo" container.
USE_AUTH - (default false) - if present, will enable auth for mongo
VAULT_TOKEN - if present, tells the script to pull credentials (MONGO_PASSWORD and MONGO_ROOT_PASSWORD) from vault
VAULT_URL - required if using VAULT_TOKEN
MONGO_USER - Required if using vault. Otherwise, if present the script will try to create root & app user accounts.
MONGO_DATABASE - Required if using vault. If specifying MONGO_USER directly, then this is required.
MONGO_PASSWORD - If using vault, will be filled in automatically. If specifying MONGO_USER directly, then this is required.
MONGO_ROOT_PASSWORD - If using vault, will be filled in automatically. If specifying MONGO_USER directly, then this is required.
REPLICA_SET - If present, this will be used as the replica set name when starting mongo.
NOTE: The Vault secret should have the following keys
Mongo will be started with no auth:
Mongo will be started with auth:
Mongo will be started with auth, and automatically create the root/app user accounts:
Mongo will be started with auth, download credentials from vault, and automatically create the root/app user accounts:
Content type
Image
Digest
Size
116.1 MB
Last updated
over 10 years ago
docker pull owlabs/owg-docker-mongo