-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (53 loc) · 1.41 KB
/
docker-compose.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
services:
kavachat-api:
build:
context: ./api
dockerfile: Dockerfile
ports:
- "5555:5555"
environment:
# Pass through existing environment variables
OPENAI_API_KEY: ${OPENAI_API_KEY}
OPENAI_BASE_URL: ${OPENAI_BASE_URL}
KAVACHAT_HOST: "0.0.0.0"
kavanode:
image: "kava/kava:${KAVA_TAG:-v0.27.0-goleveldb}"
ports:
# open default kava rpc port
- "26657:26657"
# open rest port
- "1317:1317"
# open grpc port
- "9090:9090"
# open grpc-web port
- "9091:9091"
# open EVM JSON-RPC port
- "8545:8545"
# open Eth websocket port
- "8546:8546"
volumes:
- "./tests/kvtool/full_configs/generated/kava/initstate/.kava:/root/.kava"
# start the blockchain, and set rpc to listen to connections from outside the container
command:
- "sh"
- "-c"
- "/root/.kava/config/init-data-directory.sh && kava start --rpc.laddr=tcp://0.0.0.0:26657"
# kava image does not have healthcheck built in, so we add one here
healthcheck:
# Check if kava EVM JSON-RPC is up
test:
[
"CMD",
"curl",
"-f",
"-X",
"POST",
"-H",
"Content-Type: application/json",
"http://localhost:8545",
]
interval: 30s
timeout: 30s
start_period: 1m
start_interval: 5s
retries: 3