Image running mongodb in standard or daemon mode and allows to use mongoimport to import sets of data at init. Must be run as a daemon for mongoimport to work.
HEALTHCHECK --interval=20s --timeout=30s --start-period=20s --retries=3
List of customizable ENV Vars:
- MONGO_LOG_FILEPATH: (string) straight path to log file, overrides MONGO_LOG_DIR and MONGO_LOG_FILENAME
- MONGO_LOG_DIR: (string) path to log directory
- MONGO_LOG_FILENAME: (string) if none, timestamp will be used
- MONGO_LOG_APPEND: (1|0) default is 1
- MONGO_SMALL_FILES: (1|0) default is 1
- MONGO_DAEMON: (1|0) default is 0
- MONGO_AUTH: (1|0) default is 0
- MONGO_IMPORT: (string) list of params to pass to mongoimport, ex "--type json --file /data/import.json", MONGO_DAEMON=1 is most likely required
Check docker-compose.yml in example.
Docker repo name: drannoc/mongosail