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 initializepostgres
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, andinit-db
container will simply stops, **postgres/init
- ifdata
directory is empty, and this directory contains any db scripts, they will be run, -
postgres-db
- main database container, it waits tillinit-db
container stops it work, and launch database with data inpostgres/data
dir, -
hivemind-init-sync
- it launch synchronization procedure with givenhive
node, when synchronization completes it stops, -
hivemind-server
- it launch synchronization procedure as background process, andhivemind
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