Skip to content

WIP: Wk dockerized hivemind seperate

Wieslaw Kedzierski requested to merge wk-dockerized-hivemind-seperate into develop

This MR introduces simplified setup of hivemind environment. All setup is reduced to simply typing docker-compose up and customization of .env and postgres.conf files.

Command docker-comopose up will create following containers:

  • init-db - this container will initialize postgres database, its work depends on content of following directories: ** postgres/data - if this directory is not empty, then it is assumed that, database is already initialized, and init-db container will simply stops, ** postgres/init - if data directory is empty, and this directory contains any db scripts, they will be run,
  • postgres-db - main database container, it waits till init-db container stops it work, and launch database with data in postgres/data dir,
  • hivemind-init-sync - it launch synchronization procedure with given hive node, when synchronization completes it stops,
  • hivemind-server - it launch synchronization procedure as background process, and hivemind server as main process.

All described above containers are synchronized with each other, so user do not need to do any additional work, except typing docker-compose up. File .env is used to setup environment (there is example file .env-example). There is also possibility to customize postgres database, to do that, one need to edit postgres.conf file which is placed in postgres/docker/postgres.conf

Edited by Wieslaw Kedzierski

Merge request reports