-
Notifications
You must be signed in to change notification settings - Fork 1
/
haproxy.yaml
30 lines (30 loc) · 1.21 KB
/
haproxy.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
services:
haproxy:
image: ${HAPROXY_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_api_node/haproxy}:${HAPROXY_VERSION:-latest}
profiles:
- servers
environment:
SYNC_BROADCAST_BACKEND_SERVER: "${SYNC_BROADCAST_BACKEND_SERVER:-api.hive.blog}"
SYNC_BROADCAST_BACKEND_PORT: "${SYNC_BROADCAST_BACKEND_PORT:-443}"
SYNC_BROADCAST_BACKEND_SSL: "${SYNC_BROADCAST_BACKEND_SSL:-ssl}"
volumes:
- type: bind
source: ./haproxy/haproxy.cfg
target: /usr/local/etc/haproxy/haproxy.cfg
read_only: true
networks:
- haf-network
healthcheck:
test: wget -q --spider 127.0.0.1:8001
haproxy-healthchecks:
image: ${HAPROXY_HEALTHCHECKS_REGISTRY:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_api_node/haproxy-healthchecks}:${HAPROXY_HEALTHCHECKS_VERSION:-latest}
environment:
POSTGRES_URL: postgresql://haf_admin@haf/haf_block_log
POSTGRES_URL_HAFBE: postgresql://hafbe_user@haf/haf_block_log
POSTGRES_URL_BTRACKER: postgresql://btracker_user@haf/haf_block_log
POSTGRES_URL_REPTRACKER: postgresql://reptracker_user@haf/haf_block_log
profiles:
- servers
- haproxy-healthchecks
networks:
- haf-network