Public Repository

Last pushed: 2 months ago
Short Description
Cerebro server image for Elasticsearch
Full Description

Supported tags and respective Dockerfile links

  • latest, stable, 0, 0.6, 0.6.5, 0.6.5-r0 (Dockerfile)

Cerebro Server

This is an image for running your own Cerebro Plugin Server for Elasticsearch.

Prerequisites

  • Install Docker Compose on the system.
  • Review the documentation for Cerebro for configuration file settings.
  • Choose a location on the system in which to store cerebro configuration settings and data.

Container Setup

Follow the steps below to set up the container. These instructions assume you have chosen /opt/docker/cerebro as a base folder for storing settings and data. If you choose a different path, please update the path in the commands below accordingly.

  1. On the Docker host, create the docker-compose.yml file inside the /opt/docker/cerebro folder. The format is shown below in the Docker Compose Configuration section.
  2. Create the necessary configuration folder.
    • host# mkdir -p /opt/docker/cerebro/conf
  3. Pull the latest image from the registry:
    • host# docker-compose pull cerebro
  4. Create your cerebro application.conf configuration file within the /opt/docker/cerebro/conf folder. Review the default configuration file from the documentation and set the appropriate configuration options. Be sure that uid 500 and/or gid 500 have access to read the file.
  5. Use docker-compose to bring up the container:
    • host# docker-compose up cerebro

In the future, you can update the container by simply re-running docker-compose pull cerebro followed by docker-compose up --force-recreate cerebro. These commands will automatically pull the latest version of the image(s) from the registry and replace it without affecting your data or configurations.

Docker Compose Configuration

Below is a sample docker-compose.yml file for your reference:

#
# Sample configuration for 'cerebro' container
#

version: "3"

services:
  cerebro:
    container_name: cerebro
    image: dataknightllc/cerebro:stable
    volumes:
      - /opt/docker/cerebro/conf:/opt/cerebro/config
    environment:
      TZ: ${TZ:-UTC}
    ports:
      - 9000:9000

Backing Up the Container

Once you have configured the container per the instructions above, you simply need to backup the /opt/docker/cerebro folder and subfolders to save your configuration and data.

Additional Help or Questions

If you have questions, find bugs or need additional help, please send an email to
support@dataknight.co.

Docker Pull Command
Owner
dataknightllc

Comments (0)