Add eth retrier to new docker compose file
This commit is contained in:
parent
79ee2bf4ff
commit
d3576c8ec7
@ -253,3 +253,50 @@ services:
|
|||||||
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
||||||
set +a
|
set +a
|
||||||
./start_dispatcher.sh -vv
|
./start_dispatcher.sh -vv
|
||||||
|
|
||||||
|
|
||||||
|
cic-eth-retrier:
|
||||||
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-eth:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/cic-eth
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
target: dev
|
||||||
|
args:
|
||||||
|
DOCKER_REGISTRY: $DEV_DOCKER_REGISTRY
|
||||||
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
||||||
|
EXTRA_PIP_INDEX_URL: $EXTRA_PIP_INDEX_URL
|
||||||
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
||||||
|
environment:
|
||||||
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
||||||
|
CHAIN_SPEC: ${CHAIN_SPEC:-"evm:byzantium:8996:bloxberg"}
|
||||||
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
||||||
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
||||||
|
DATABASE_NAME: ${DATABASE_NAME:-cic_eth}
|
||||||
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
||||||
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
||||||
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
||||||
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
||||||
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
||||||
|
DATABASE_POOL_SIZE: 0
|
||||||
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
||||||
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
||||||
|
CELERY_DEBUG: ${CELERY_DEBUG:-1}
|
||||||
|
CELERY_QUEUE: ${CELERY_QUEUE:-cic-eth}
|
||||||
|
SYNCER_LOOP_INTERVAL: ${SYNCER_LOOP_INTERVAL:-20}
|
||||||
|
RETRY_DELAY: ${RETRY_DELAY:-60}
|
||||||
|
RETRY_BATCH_SIZE: ${RETRY_BATCH_SIZE:-100}
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- evm
|
||||||
|
- postgres
|
||||||
|
- redis
|
||||||
|
volumes:
|
||||||
|
- contract-config:/tmp/cic/config/:ro
|
||||||
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
||||||
|
set +a
|
||||||
|
./start_retry.sh -vv
|
||||||
|
Loading…
Reference in New Issue
Block a user