-
Notifications
You must be signed in to change notification settings - Fork 1
/
hivemind.yaml
74 lines (71 loc) · 2.55 KB
/
hivemind.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
hivemind-block-processing:
image: ${HIVEMIND_INSTANCE_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_INSTANCE_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- apps
- hivemind
networks:
haf-network:
command:
- "sync"
- "--database-url=postgresql://hivemind@haf/haf_block_log"
- "--database-admin-url=postgresql://haf_admin@haf/haf_block_log"
- "--install-app"
- "--only-hivemind"
healthcheck:
test: ["CMD-SHELL","/home/hivemind/block-processing-healthcheck.sh || exit 1"]
interval: 10s
timeout: 2s
retries: 10
start_period: 5m
depends_on:
haf:
condition: service_healthy
hivemind-rtracker-install:
condition: service_completed_successfully
hivemind-server:
image: ${HIVEMIND_INSTANCE_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_INSTANCE_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- apps
- hivemind
networks:
haf-network:
command:
- "--database-url=postgresql://hivemind@haf/haf_block_log"
- "server"
depends_on:
hivemind-block-processing:
condition: service_healthy
haf:
condition: service_healthy
# note: the hivemind-install steps, which create/update the hivemind database schema, are also run automatically at the beginning
# of the hivemind-block-processing image's startup. There is normally no reason to run this step separately. If you do,
# be sure that the hivemind block-processor is not running at the same time as this install script, as doing so may corrupt your
# database
hivemind-install:
image: ${HIVEMIND_INSTANCE_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_INSTANCE_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- hivemind-install
networks:
haf-network:
command:
- "setup"
- "--database-admin-url=postgresql://haf_admin@haf/haf_block_log"
depends_on:
haf:
condition: service_healthy
hivemind-rtracker-install:
condition: service_completed_successfully
hivemind-uninstall:
image: ${HIVEMIND_INSTANCE_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_INSTANCE_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- hivemind-uninstall
networks:
haf-network:
entrypoint:
- /home/hivemind/app/uninstall_app.sh
depends_on:
haf:
condition: service_healthy
command:
- "--postgres-url=postgresql://haf_admin@haf/haf_block_log"