-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhafsql.yaml
More file actions
65 lines (64 loc) · 2.16 KB
/
Copy pathhafsql.yaml
File metadata and controls
65 lines (64 loc) · 2.16 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
56
57
58
59
60
61
62
63
64
65
services:
hafsql:
profiles:
- hafsql
image: ${HAFSQL_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hafsql}:${HAFSQL_VERSION:-${HIVE_API_NODE_VERSION}}
networks:
- haf-network
tty: true
stdin_open: true
environment:
HAFSQL_PGHOST: haf
# Can disable parts of hafsql if not needed
HAFSQL_BALANCES: true
HAFSQL_ACCOUNTS: true
HAFSQL_FOLLOWS: true # follows, mutes, blacklists
HAFSQL_COMMUNITIES: true
HAFSQL_RC_DELEGATIONS: true
HAFSQL_DELEGATIONS: true
HAFSQL_PROPOSALS: true
HAFSQL_COMMENTS: true
HAFSQL_REBLOGS: true # depends on HAFSQL_COMMENTS
HAFSQL_REWARDS: true # depends on HAFSQL_COMMENTS
HAFSQL_REPUTATIONS: true # depends on HAFSQL_COMMENTS
HAFSQL_MARKET: true
HAFSQL_PUBLICUSER: true
HAFSQL_PUBLICUSERNAME: ${HAFSQL_PUBLIC_USERNAME:-hafsql_public}
HAFSQL_PUBLICPASSWORD: ${HAFSQL_PUBLIC_PASSWORD:-hafsql_public}
HAFSQL_PUBLIC_STATEMENT_TIMEOUT: ${HAFSQL_PUBLIC_STATEMENT_TIMEOUT:-15s}
HAFSQL_PUBLIC_WORK_MEM: ${HAFSQL_PUBLIC_WORK_MEM:-}
HAFSQL_PUBLIC_TEMP_FILE_LIMIT: ${HAFSQL_PUBLIC_TEMP_FILE_LIMIT:-}
API_PREFIX: /hafsql
depends_on:
balance-tracker-install:
condition: service_completed_successfully
required: false
block-explorer-install-balance-tracker:
condition: service_completed_successfully
required: false
haf:
condition: service_healthy
hivemind-install:
condition: service_completed_successfully
reputation-tracker-install:
condition: service_completed_successfully
labels:
# for Swagger UI
- "io.hive.swagger.url=/hafsql/openapi.json"
- "io.hive.swagger.name=HafSQL"
- "io.hive.swagger.order=7"
hafsql-uninstall:
profiles:
- hafsql-uninstall
image: ${HAFSQL_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hafsql}:${HAFSQL_VERSION:-${HIVE_API_NODE_VERSION}}
networks:
- haf-network
tty: true
stdin_open: true
stop_grace_period: 10m
command: purge
environment:
HAFSQL_PGHOST: haf
depends_on:
haf:
condition: service_healthy