-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhive.yaml
More file actions
55 lines (54 loc) · 2.18 KB
/
hive.yaml
File metadata and controls
55 lines (54 loc) · 2.18 KB
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
services:
hive:
profiles:
- hive
networks:
- haf-network
image: ${HIVE_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hive}:${HIVE_VERSION:-${HIVE_API_NODE_VERSION}}
tty: true
stdin_open: true
init: true
command: "${ARGUMENTS:-}"
stop_grace_period: 2m
environment:
SHM_DIR: /home/hived/shm_dir
# uncomment to expose the p2p port. good for the health of the network as a whole, but
# not required unless you're using this as a seed node.
# ports:
# - "2001:2001"
# when mounting volumes, declare the directories you want to bind-mount here,
# using either the short or long syntax. Don't declare them as top-level named
# volumes and mount them by name. Declaring them inline here always results
# in a recursive bind. The behavior when declaring the volumes at the top-level
# seems to vary from system to system (even when `o: rbind` is specified).
volumes:
- type: bind
source: ${HAF_DATA_DIRECTORY:-${TOP_LEVEL_DATASET_MOUNTPOINT}}/
target: /home/hived/datadir
- type: bind
source: ${HAF_SHM_DIRECTORY:-${TOP_LEVEL_DATASET_MOUNTPOINT}/shared_memory}/
target: /home/hived/shm_dir
- type: bind
source: ${HAF_ROCKSDB_DIRECTORY:-${TOP_LEVEL_DATASET_MOUNTPOINT}/shared_memory}/
target: /home/hived/rocksdb_dir
shm_size: 4gb
healthcheck:
test: ["CMD-SHELL", "wget -T2 -nv -t1 --spider http://127.0.0.1:8091/ || exit 1"]
interval: 10s
timeout: 2s
retries: 10
start_period: 72h
hivefeed:
profiles:
- hivefeed
# the official someguy123/hivefeed-js image has a directory mounted where the config file goes, making it
# unusable. instead, we use our hivefeed-js without that directory (but otherwise identical)
image: ${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_api_node/hivefeed-js:${HIVEFEED_VERSION:-v4.4.0}
volumes:
- type: bind
source: hivefeed/config.json
target: /opt/hivefeed/config.json
read_only: true
# by default, uses public API servers, so hivefeed doesn't specifically need access to hived over haf-network
#networks:
# - haf-network