-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproxy_whitelist.yaml
More file actions
87 lines (87 loc) · 2.97 KB
/
Copy pathproxy_whitelist.yaml
File metadata and controls
87 lines (87 loc) · 2.97 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
proxy-whitelist-install:
image: ${PROXY_WHITELIST_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/proxy-whitelist}:${PROXY_WHITELIST_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- proxy-whitelist
environment:
POSTGRES_HOST: haf
command:
- install_app
- "--start_block=${PROXY_WHITELIST_START_BLOCK:-1}"
networks:
haf-network:
depends_on:
haf:
condition: service_healthy
hivemind-install:
condition: service_completed_successfully
proxy-whitelist-block-processing:
image: ${PROXY_WHITELIST_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/proxy-whitelist}:${PROXY_WHITELIST_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- proxy-whitelist
environment:
POSTGRES_HOST: haf
POSTGRES_USER: proxy_whitelist_owner
command: >
process_blocks ${PROXY_WHITELIST_SYNC_ARGS:-}
networks:
haf-network:
healthcheck:
test: ["CMD-SHELL", "test -f /tmp/proxy_whitelist_startup_time.txt"]
interval: 60s
timeout: 10s
retries: 3
start_period: 48h
depends_on:
haf:
condition: service_healthy
proxy-whitelist-install:
condition: service_completed_successfully
proxy-whitelist-postgrest:
image: ${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_api_node/postgrest:${HAF_API_NODE_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- proxy-whitelist
environment:
PGRST_SERVER_HOST: "::"
PGRST_ADMIN_SERVER_PORT: 3001
PGRST_DB_URI: postgresql://proxy_whitelist_user@pgbouncer:6432/haf_block_log?application_name=proxy_whitelist_postgrest
PGRST_DB_SCHEMA: proxy_whitelist_endpoints
PGRST_DB_ANON_ROLE: proxy_whitelist_user
PGRST_DB_POOL: 6
PGRST_DB_POOL_ACQUISITION_TIMEOUT: 10
PGRST_DB_ROOT_SPEC: root
PGRST_DB_EXTRA_SEARCH_PATH: proxy_whitelist_app
networks:
haf-network:
healthcheck:
test: ["CMD-SHELL", "wget --timeout=2 -nv -t1 --spider 127.0.0.1:3001/ready || exit 1"]
interval: 10s
timeout: 3s
retries: 10
start_period: 15m
depends_on:
pgbouncer:
condition: service_healthy
proxy-whitelist-install:
condition: service_completed_successfully
proxy-whitelist-postgrest-rewriter:
image: ${PROXY_WHITELIST_REWRITER_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/proxy-whitelist/postgrest-rewriter}:${PROXY_WHITELIST_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- proxy-whitelist
labels:
- "io.hive.swagger.url=/proxy-whitelist-api/"
- "io.hive.swagger.name=ProxyWhitelist"
- "io.hive.swagger.order=8"
- "io.hive.healthcheck.port=7015"
healthcheck:
test: ["CMD-SHELL", "wget --timeout=2 -nv -t1 --spider 127.0.0.1:81/health || exit 1"]
interval: 10s
timeout: 3s
retries: 10
start_period: 1m
init: true
depends_on:
proxy-whitelist-postgrest:
condition: service_healthy
networks:
haf-network: