16 lines
944 B
YAML
16 lines
944 B
YAML
environment_variables:
|
|
MONGODB_USER: "User to be created on first boot (default: root)."
|
|
MONGODB_PASSWORD: "Password to be set for MONGODB_USER on first boot (default: none)."
|
|
MONGODB_DATABASE: "Database to be created on first boot, accessible by MONGODB_USER (default: none)."
|
|
volumes:
|
|
$BITNAMI_APP_VOL_PREFIX/data: "Location of $BITNAMI_APP_NAME data files."
|
|
$BITNAMI_APP_VOL_PREFIX/conf: "Location of mongodb.conf ($BITNAMI_APP_NAME config file)."
|
|
$BITNAMI_APP_VOL_PREFIX/logs: "Location of mongodb.log."
|
|
ports:
|
|
27017: "Default $BITNAMI_APP_NAME port."
|
|
misc:
|
|
Options: "You can add extra options during the docker run using the -- prefix."
|
|
Note: "The user and database creation happens only the first time you run the container."
|
|
Note: "MONGODB_USER works in conjunction with MONGODB_DATABASE environment variable."
|
|
Tip: "Back up the $BITNAMI_APP_VOL_PREFIX/data and $BITNAMI_APP_VOL_PREFIX/conf directories regularly."
|