One-shot container for creating MongoDB databases and users.
2.1K
One-shot container for creating MongoDB databases and users.
mongodb-schema:
image: osshelp/mongodb-schema:stable
restart: "no"
environment:
MONGODB_HOST: mongodb
MONGODB_USER: root
MONGODB_PASSWORD: $MONGODB_PASSWORD
MONGODB_DBS: "DB1_NAME:$USER1_PASSWORD, DB2_NAME:$USER2_PASSWORD"
networks:
- net
mongodb-schema:
image: osshelp/mongodb-schema:stable
deploy:
restart_policy:
condition: none
environment:
MONGODB_HOST: mongodb
MONGODB_USER: root
MONGODB_PASSWORD: $MONGODB_PASSWORD
MONGODB_DBS: "DB1_NAME:$USER1_PASSWORD, DB2_NAME:$USER2_PASSWORD"
networks:
- net
| Setting | Default | Description |
|---|---|---|
MONGODB_HOST | mongodb | MongoDB host |
MONGODB_PORT | 27017 | MongoDB port |
MONGODB_USER | root | MongoDB superuser |
MONGODB_PASSWORD | password | MongoDB superuser password |
MONGODB_TIMEOUT | 60 | Timeout in seconds for wating MongoDB host connection |
MONGODB_DBS | - | List of DB_NAME:PASSWORD (delimiter: space or comma. USERNAME is equal to DBNAME) |
Source repository is available at Github here.
GPL3
OSSHelp Team, see https://oss.help
Content type
Image
Digest
sha256:a67e4fcf8…
Size
159.9 MB
Last updated
over 1 year ago
docker pull osshelp/mongodb-schema