Giter VIP home page Giter VIP logo

dockup-mongo's Introduction

dockup-mongo

Docker Automated buil Docker Stars Docker Pulls

This is based on wetransform-os/dockup-mongo, but uses a slimmer base image.

The overall image size is 123 MB compressed; 352 MB uncompressed vs. 210 MB compressed; 567 MB uncompressed.

Docker image to backup/restore your MongoDB to AWS S3. Builds upon dockup.

Configuration

This Docker image uses mongodump to create a MongoDB database dump and backup or restore it with dockup. Please see the dockup repository for extended information on configuration options, for instance on how to configure encryption with GnuPG.

The following MongoDB specific configuration options have been added:

  • MONGODB_HOST - the host/ip of your mongodb database (defaults to mongodb)
  • MONGODB_PORT - the port number of your mongodb database (defaults to 27017)
  • MONGODB_USER - the username of your mongodb database. If MONGODB_USER is empty while MONGODB_PASS is not, the image will use admin as the default username
  • MONGODB_PASS - the password of your mongodb database
  • MONGODB_AUTH_DB - the authentication database to use, if any
  • MONGODB_DB - the database name to dump. If not specified, it will dump all the databases
  • MONGODB_DUMP_EXTRA_OPTS - the extra options to pass to mongodump command

Usually you will link your MongoDB container to the dockup container, if you use mongodb as the link name you don't need to configure the host.

For an example runnning backup and restore, see the ./test-backup.sh script. Before running it, ensure there is a file test-env.txt with configuration options as in test-env.txt.sample.

The following dockup environment variables should not be overriden if using the specialised MongoDB image:

  • BEFORE_BACKUP_CMD
  • AFTER_BACKUP_CMD
  • AFTER_RESTORE_CMD
  • PATHS_TO_BACKUP

dockup-mongo's People

Contributors

robbyoconnor avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.