-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-indexer.yaml
61 lines (58 loc) · 1.76 KB
/
docker-compose-indexer.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
55
56
57
58
59
60
61
version: '3.8'
services:
yaci-indexer:
image: cardanofoundation/cardano-rosetta-java-indexer:${INDEXER_DOCKER_IMAGE_TAG}
build:
context: ./
dockerfile: ./yaci-indexer/Dockerfile
environment:
NETWORK: ${NETWORK}
YACI_SPRING_PROFILES: ${YACI_SPRING_PROFILES}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_SECRET: ${DB_SECRET}
DB_SCHEMA: ${DB_SCHEMA}
CARDANO_NODE_HOST: ${CARDANO_NODE_HOST}
CARDANO_NODE_PORT: ${CARDANO_NODE_PORT}
PROTOCOL_MAGIC: ${PROTOCOL_MAGIC}
GENESIS_SHELLEY_PATH: ${GENESIS_SHELLEY_PATH}
GENESIS_BYRON_PATH: ${GENESIS_BYRON_PATH}
GENESIS_ALONZO_PATH: ${GENESIS_ALONZO_PATH}
GENESIS_CONWAY_PATH: ${GENESIS_CONWAY_PATH}
PRUNING_ENABLED: ${PRUNING_ENABLED}
CARDANO_NODE_SOCKET_PATH: ${CARDANO_NODE_SOCKET_PATH}
HOST_N2C_SOCAT_HOST: ${HOST_N2C_SOCAT_HOST}
HOST_N2C_SOCAT_PORT: ${HOST_N2C_SOCAT_PORT}
SEARCH_PAGE_SIZE: ${SEARCH_PAGE_SIZE}
volumes:
- ${CARDANO_CONFIG}:/config
- ${CARDANO_NODE_DIR}:${CARDANO_NODE_DIR}
restart: always
depends_on:
db:
condition: service_healthy
db:
image: ${DB_IMAGE_NAME}:${DB_IMAGE_TAG}
shm_size: 30g
ports:
- ${DB_PORT}:${DB_PORT}
command: -p ${DB_PORT}
environment:
POSTGRES_PASSWORD: ${DB_SECRET}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
restart: on-failure
volumes:
- ${DB_PATH}:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME} -p ${DB_PORT} -h localhost"]
interval: 10s
timeout: 3s
retries: 10
volumes:
data:
networks:
default:
name: cardano-rosetta-java-${NETWORK}