Skip to content

Deploy MongoDB & S3 Storage

Kudos Boards requires an S3 object store, and a Mongo database. This documentation will deploy a Minio S3 storage container & MongoDB replicaSet into the Swarm setup.

If you already have externally hosted mongo database and/or S3 storage please contact us for assistance in utilising them. support@kudosboards.com

Prerequisites

  1. Docker swarm with Portainer up and running Guide here
  2. Storage Config File downloaded

Update config file

Key Description
x-minio-access Provide an access key to use (min 3 chars, alpha numeric and "-"), you will need to provide this to any services that require access to minio
x-minio-secret Provide a secret key to use (min 8 chars, alpha numeric and "-"), you will need to provide this to any services that require access to minio

Optional: if you only want to deploy one of these services you can remove the other, ie under services:, delete either the mongo: or minio: sections.


Deploy

  1. Open Portainer and login
  2. Select your primary endpoint
  3. Choose Stacks from the side menu
  4. Click Add Stack
  5. Name your stack Storage
  6. Browse to your customised config file
  7. Click "Deploy the stack"

Updates

The Storage services can be updated through the Portainer interface, or alternatively these commands should force latest images to run

docker service update --force --image bitnami/mongodb:latest storage/mongo
docker service update --force --image minio/minio:latest storage/minio