WIP: Wk dockerized hivemind seperate
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 initializepostgresdatabase, 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, andinit-dbcontainer will simply stops, **postgres/init- ifdatadirectory is empty, and this directory contains any db scripts, they will be run, -
postgres-db- main database container, it waits tillinit-dbcontainer stops it work, and launch database with data inpostgres/datadir, -
hivemind-init-sync- it launch synchronization procedure with givenhivenode, when synchronization completes it stops, -
hivemind-server- it launch synchronization procedure as background process, andhivemindserver 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