Skip to content

sahsu/docker-opsmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Ops Manager for docker

Intro

Dockerfile / Docker-compose file to build a MongoDB Ops Manager container image.

Version

  1. Latest Version: 2.0.2.337-1

Prerequisites

  1. Please check Ops Manager Installation Guide for avoid time wasting specialy Ops Manager Hardware and Software Requirements
  2. 4+ Core / 16G Memory will prefer - use m3.xlarge as default.
  3. for built-in Mongo need separe disk spec - 50G i will prefer for this case.

Installation

  1. you should get ready on docker install on your hosts and run
docker run -d -v /mnt/data:/data sahsu/docker-opsmanager
  1. it will (1) pull sahsu/docker-opsmanager from Docker Hub (2) run it as background.
  2. and waiting for 3 - 5 mins ( depends on your instance type ) and open http://{YOUR_DOCKER_HOST_IP}:{YOUR_OPSMANAGER_PORT}
  3. default port - 8080 and you can add -p 18080:8080 on docker run command to change your port.

QuickStart

  1. after you run docker images and waiting for 3 - 5 mins you can open browser to open your ops manager - http://{YOUR_DOCKER_HOST_IP}:{YOUR_OPSMANAGER_PORT}
  2. for default configure the mongodb for application and backup will running on same instance so you don't need to do anything configure update, for separe Mongodb please check on Configure

Configure

  1. Ops Manager designed to serverless means your app is only app, all data is stored on Application MongoDB
  2. By default, if you don't assign OPSMANAGER_MONGO_APP then script will create two mongo in local running with port : 27017 & 27018
  3. if you are going to manually deploy Ops Manger with 2 mongo you can use sample code:
sudo docker run --name appmongo -d mongo:3
sudo docker run --name backupmongo -d mongo:3
sudo docker run -d -v /mnt/data:/data  \
   --link appmongo:appmongo \
   --link backupmongo:backupmongo \
   -p 8080:8080 \
   -e 'OPSMANAGER_MONGO_APP=appmongo:27017' \
   -e 'OPSMANAGER_BACKUPMONGO=backupmongo:27017' \
   -e 'OPSMANAGER_CENTRALUR=10.23.10.114' \
   -e 'OPSMANAGER_CENTRALURLPORT=18080' \
   sahsu/docker-opsmanager 

Each Env means

  • OPSMANAGER_CFG: the main ops manager cfg, you should keep this are same.
  • OPSMANAGER_BACKUPCFG: same as OPSMANAGER_CFG.
  • OPSMANAGER_MONGO_APP: application mongodb URI & Port, default use loaclhost:27017.
  • OPSMANAGER_CENTRALURL: default ops manager URI, change it to your FQDN.
  • OPSMANAGER_CENTRALURLPORT: default ops manager URI port, change it your port.
  • OPSMANAGER_BACKUPURL: default ops manager backup url, should same as OPSMANAGER_CENTRALURL.
  • OPSMANAGER_BACKUPURLPORT: default ops manager backup url port
  • OPSMANAGER_FROMEMAIL: default ops manager from email
  • OPSMANAGER_ADMINEMAIL: default ops manager admin email
  • OPSMANAGER_REPLYTOEMAIL: default reply email
  • OPSMANAGER_ADMINFROMEMAIL: default admin from email
  • OPSMANAGER_BOUNCEEMAIL: default bounce email
  • OPSMANAGER_APPLOG: default log path
  • OPSMANAGER_BACKUPLOG: default backup log path
  • OPSMANAGER_BACKUPMONGO: default backup mongo URI ( should same as OPSMANAGER_MONGO_APP )
  • OPSMANAGER_BACKUPPATH: default backup daemon storage databse path

Database

  1. You can use docker-compose.yml to quick start up with app x 1 mongodb x 2 ( for app & backup purpose )
cd to docker-opsmanager/
sudo docker-compose up
  1. and you can check on (docker-compose.yml) for more detail information and made your docker-compose configure file.

Maintenance

  • ** app:start **: start Ops Manager, default action
  • ** bash **: start bash, run it with docker run -it you can enter bash and run /sbin/entrypoint.sh for see manually startups Ops Manager.

Referenace

  1. Ops Manager newest Manual
  2. Ops Manager Release note
  3. Ops Manager Download link

About

MongoDB Ops Manager for docker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages