Public Repository

Last pushed: 3 months ago
Short Description
MongoDB compatible with the Healthcare Blocks platform
Full Description

SSL is enabled by default (to turn off, see below). Startup command can be as simple as:

docker run -d -p 27017:27017 \
  -v $(pwd)/mongodb.pem:/etc/ssl/mongodb.pem \
  -v $(pwd)/ca.pem:/etc/ssl/ca.pem  \
  healthcareblocks/mongodb

An "admin" user with a random generated password is automatically created for the "admin" database. To set the admin name and password:

docker run -d -p 27017:27017 \
  -v $(pwd)/database.pem:/etc/ssl/mongodb.pem \
  -v $(pwd)/atlashealth.ca-bundle.pem:/etc/ssl/ca.pem  \
  -e MONGODB_ADMIN_USER="superadmin" \
  -e MONGODB_ADMIN_PASS="password" \
  healthcareblocks/mongodb

An additional database owner can also be created:

docker run -d -p 27017:27017 \
  -v $(pwd)/database.pem:/etc/ssl/mongodb.pem \
  -v $(pwd)/atlashealth.ca-bundle.pem:/etc/ssl/ca.pem  \
  -e MONGODB_USER="user" \
  -e MONGODB_PASS="password" \
  -e MONGODB_DATABASE="mydatabase" healthcareblocks/mongodb

To turn off SSL:

docker run -d -p 27017:27017 -e SSL_ON="" healthcareblocks/mongodb

Environment Variables:

ENV AUTH yes
ENV MONGO_MAJOR 3.4
ENV MONGO_VERSION 3.4.1
ENV MONGODB_ADMIN_USER admin
ENV MONGODB_ADMIN_PASS [randomly generated if not set]
ENV MONGODB_DATABASE admin
ENV MONGODB_USER app
ENV MONGODB_PASS [randomly generated if not set]
ENV SSL_ON yes
ENV SSL_CA  /etc/ssl/ca.pem
ENV SSL_PEM /etc/ssl/mongodb.pem
ENV STORAGE_ENGINE wiredTiger
ENV JOURNALING yes
Docker Pull Command
Owner
healthcareblocks

Comments (0)