-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstatus.yaml
More file actions
30 lines (30 loc) · 907 Bytes
/
status.yaml
File metadata and controls
30 lines (30 loc) · 907 Bytes
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:
status-api:
image: ${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/haf_api_node/status:${HAF_API_NODE_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- servers
- status
labels:
- "io.hive.swagger.url=/status-api/"
- "io.hive.swagger.name=Status API"
- "io.hive.swagger.order=100"
- "io.hive.healthcheck.port=7014"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
HEALTHCHECK_HOST: haproxy-healthchecks
HEALTHCHECK_TIMEOUT: 2000
UPDATE_INTERVAL: 10000
PORT: 3000
PROJECT_NAME: ${COMPOSE_PROJECT_NAME:-}
networks:
- haf-network
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:3000/health"]
interval: 10s
timeout: 3s
retries: 3
start_period: 10s
depends_on:
haproxy-healthchecks:
condition: service_started