-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (87 loc) · 3.36 KB
/
docker-compose.yml
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
88
89
90
91
92
93
---
services:
# run postgres for proxy service to store observability metrics
postgres:
image: postgres:13.12
env_file: .env
ports:
- "${POSTGRES_HOST_PORT}:${POSTGRES_CONTAINER_PORT}"
expose:
- "${POSTGRES_CONTAINER_PORT}"
# run redis for proxy service to cache responses
redis:
image: "bitnami/redis:latest"
env_file: .env
ports:
- "${REDIS_HOST_PORT}:${REDIS_CONTAINER_PORT}"
expose:
- "${REDIS_CONTAINER_PORT}"
# run single validator kava node to provide a local kava network for development and testing of the proxy service
kava-validator:
image: kava/kava:${KAVA_CONTAINER_TAG}
entrypoint: /docker/kava/kava-validator-entrypoint.sh
env_file: .env
volumes:
- ./docker/kava-validator:/docker/kava
- ./docker/shared:/docker/shared
ports:
- "${KAVA_HOST_COSMOS_RPC_PORT}:${KAVA_CONTAINER_COSMOS_RPC_PORT}"
- "${KAVA_HOST_EVM_RPC_PORT}:${KAVA_CONTAINER_EVM_RPC_PORT}"
# expose ports for other services to be able to connect to within
# the default docker-compose network
expose:
- "${KAVA_CONTAINER_COSMOS_RPC_PORT}"
- "${KAVA_CONTAINER_EVM_RPC_PORT}"
# peer node with api running validator's network
kava-pruning:
image: kava/kava:${KAVA_CONTAINER_TAG}
entrypoint: /docker/shared/kava-entrypoint.sh
env_file: .env
volumes:
- ./docker/shared:/docker/shared
ports:
- "${KAVA_PRUNING_HOST_COSMOS_RPC_PORT}:${KAVA_CONTAINER_COSMOS_RPC_PORT}"
- "${KAVA_PRUNING_HOST_EVM_RPC_PORT}:${KAVA_CONTAINER_EVM_RPC_PORT}"
# expose ports for other services to be able to connect to within
# the default docker-compose network
expose:
- "${KAVA_CONTAINER_COSMOS_RPC_PORT}"
- "${KAVA_CONTAINER_EVM_RPC_PORT}"
# shards are in name only. they are standard peer nodes, but will only recieve traffic
# for a specific block range. kava-shard-10 receives requests for heights 1-10
kava-shard-10:
image: kava/kava:${KAVA_CONTAINER_TAG}
entrypoint: /docker/shared/kava-entrypoint.sh
env_file: .env
volumes:
- ./docker/shared:/docker/shared
# expose ports for other services to be able to connect to within
# the default docker-compose network
expose:
- "${KAVA_CONTAINER_COSMOS_RPC_PORT}"
- "${KAVA_CONTAINER_EVM_RPC_PORT}"
# shards are in name only. they are standard peer nodes, but will only recieve traffic
# for a specific block range. kava-shard-20 receives requests for heights 11-20
kava-shard-20:
image: kava/kava:${KAVA_CONTAINER_TAG}
entrypoint: /docker/shared/kava-entrypoint.sh
env_file: .env
volumes:
- ./docker/shared:/docker/shared
# expose ports for other services to be able to connect to within
# the default docker-compose network
expose:
- "${KAVA_CONTAINER_COSMOS_RPC_PORT}"
- "${KAVA_CONTAINER_EVM_RPC_PORT}"
# run proxy service to observe, route, and scale requests to kava api endpoints
proxy:
build:
dockerfile: local.Dockerfile
env_file: .env
ports:
- "${PROXY_HOST_PORT}:${PROXY_CONTAINER_PORT}"
- "${PROXY_CONTAINER_EVM_RPC_PRUNING_PORT}:${PROXY_CONTAINER_PORT}"
- "${TEST_UNCONFIGURED_PROXY_PORT}:${PROXY_CONTAINER_PORT}"
- "${PROXY_HOST_DEBUG_PORT}:${PROXY_CONTAINER_DEBUG_PORT}"
cap_add:
- SYS_PTRACE # Allows for attaching debugger to process in this container