-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (35 loc) · 1.16 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
---
version: "3"
services:
# run single validator kava node to provide a local kava network for development and testing of the blockscout service end to end
kava:
image: kava/kava:v0.24.0
entrypoint: /docker/kava/kava-entrypoint.sh
env_file: .env
volumes:
- ./kava:/docker/kava
ports:
- "${KAVA_HOST_COSMOS_API_PORT}:${KAVA_CONTAINER_COSMOS_API_PORT}"
- "${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}"
postgres:
env_file: .env
build: "./db"
volumes:
- "./db/initdb.d:/docker-entrypoint-initdb.d"
- "./postgres-data:/var/lib/postgresql/data"
ports:
- "${POSTGRES_HOST_PORT}:${POSTGRES_CONTAINER_PORT}"
blockscout:
build: "./blockscout"
env_file: .env
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
ports:
- "${BLOCKSCOUT_HOST_PORT}:${BLOCKSCOUT_CONTAINER_PORT}"