-
Notifications
You must be signed in to change notification settings - Fork 1
/
haf_block_explorer.yaml
115 lines (114 loc) · 3.65 KB
/
haf_block_explorer.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
services:
block-explorer-install:
image: ${HAF_BLOCK_EXPLORER_REGISTRY:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_block_explorer}:${HAF_BLOCK_EXPLORER_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- apps
- hafbe
environment:
POSTGRES_HOST: haf
command:
- install_app
- --swagger-url=${PUBLIC_HOSTNAME}
networks:
haf-network:
depends_on:
haf:
condition: service_healthy
balance-tracker-install:
condition: service_completed_successfully
reputation-tracker-install:
condition: service_completed_successfully
hafah-install:
condition: service_completed_successfully
block-explorer-uninstall:
image: ${HAF_BLOCK_EXPLORER_REGISTRY:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_block_explorer}:${HAF_BLOCK_EXPLORER_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- block-explorer-uninstall
environment:
POSTGRES_HOST: haf
command:
- uninstall_app
- --skip-btracker
networks:
haf-network:
depends_on:
haf:
condition: service_healthy
block-explorer-uninstall-balance-tracker:
image: ${BALANCE_TRACKER_REGISTRY:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/balance_tracker}:${BALANCE_TRACKER_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- block-explorer-uninstall
environment:
POSTGRES_HOST: haf
networks:
haf-network:
command:
- uninstall_app
depends_on:
block-explorer-uninstall:
condition: service_completed_successfully
haf:
condition: service_healthy
block-explorer-block-processing:
image: ${HAF_BLOCK_EXPLORER_REGISTRY:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_block_explorer}:${HAF_BLOCK_EXPLORER_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- apps
- hafbe
environment:
POSTGRES_HOST: haf
command:
- process_blocks
networks:
haf-network:
depends_on:
block-explorer-install:
condition: service_completed_successfully
haf:
condition: service_healthy
block-explorer-postgrest-rewriter:
image: openresty/openresty:alpine
profiles:
- apps
- hafbe
volumes:
- type: bind
source: haf_block_explorer/haf_block_explorer_nginx.conf
target: /usr/local/openresty/nginx/conf/nginx.conf
read_only: true
- type: bind
source: haf_block_explorer/rewrite_rules.conf
target: /usr/local/openresty/nginx/conf/rewrite_rules.conf
read_only: true
depends_on:
block-explorer-postgrest:
condition: service_healthy
networks:
- haf-network
block-explorer-postgrest:
image: ${POSTGREST_REGISTRY:-registry.gitlab.syncad.com/hive/haf_api_node/postgrest}:${POSTGREST_VERSION:-latest}
profiles:
- apps
- hafbe
environment:
PGRST_ADMIN_SERVER_PORT: 3001
PGRST_DB_URI: postgresql://hafbe_user@haf/haf_block_log
PGRST_DB_SCHEMA: hafbe_endpoints
PGRST_DB_ANON_ROLE: hafbe_user
PGRST_DB_POOL: 20
PGRST_DB_POOL_ACQUISITION_TIMEOUT: 10
PGRST_DB_ROOT_SPEC: root
PGRST_DB_EXTRA_SEARCH_PATH: ${BTRACKER_SCHEMA:-hafbe_bal}, ${REPTRACKER_SCHEMA:-hafbe_rep}
# PGRST_OPENAPI_SERVER_PROXY_URI: http://${PUBLIC_HOSTNAME}/hafbe_api/
networks:
haf-network:
healthcheck:
test: ["CMD-SHELL", "wget --timeout=2 -nv -t1 --spider http://127.0.0.1:3000/rpc/get_hafbe_version || exit 1"]
interval: 10s
timeout: 3s
retries: 10
start_period: 1m
depends_on:
block-explorer-install:
condition: service_completed_successfully
haf:
condition: service_healthy