2021-08-21 19:23:43 +02:00
|
|
|
version: "3"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-db: {}
|
2021-01-25 17:21:30 +01:00
|
|
|
signer-data: {}
|
2021-02-01 17:35:35 +01:00
|
|
|
bloxberg-data: {}
|
2021-06-03 19:22:47 +02:00
|
|
|
contract-config: {}
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
services:
|
2021-10-20 17:02:36 +02:00
|
|
|
evm:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/bloxberg-node:${TAG:-latest}
|
2021-02-01 17:56:36 +01:00
|
|
|
build:
|
|
|
|
context: apps/bloxbergValidatorSetup
|
2021-08-21 19:23:43 +02:00
|
|
|
restart: unless-stopped
|
2021-02-01 02:08:45 +01:00
|
|
|
ports:
|
2021-08-21 19:23:43 +02:00
|
|
|
- ${DEV_ETH_PORT_HTTP:-63545}:8545
|
|
|
|
- ${DEV_ETH_PORT_WS:-63546}:8546
|
2021-02-01 02:08:45 +01:00
|
|
|
- 30303
|
|
|
|
volumes:
|
2021-02-11 11:14:30 +01:00
|
|
|
- ./apps/bloxbergValidatorSetup/keys:/root/keys # stores the signing key locally
|
2021-02-06 04:27:59 +01:00
|
|
|
- bloxberg-data:/root/.local/share/io.parity.ethereum/
|
2021-02-01 02:08:45 +01:00
|
|
|
|
2021-01-24 21:16:22 +01:00
|
|
|
postgres:
|
|
|
|
image: postgres:12.5-alpine
|
2021-08-21 19:23:43 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust # for postgres user access w/o password. Obvioulsy not safe but allows easy elevated debugging.
|
|
|
|
# PGDATA: /tmp/cic/postgres
|
2021-01-24 21:16:22 +01:00
|
|
|
ports:
|
2021-08-21 19:23:43 +02:00
|
|
|
- ${DEV_POSTGRES_PORT:-63432}:5432
|
2021-03-06 18:55:51 +01:00
|
|
|
command: [ "-c", "max_connections=200" ]
|
2021-01-24 21:16:22 +01:00
|
|
|
volumes:
|
2021-08-21 19:23:43 +02:00
|
|
|
- ./scripts/initdb/create_db.sql:/docker-entrypoint-initdb.d/1-create_all_db.sql
|
2021-02-09 18:32:36 +01:00
|
|
|
- postgres-db:/var/lib/postgresql/data
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
redis:
|
2021-10-20 17:02:36 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-docker.io}/redis:6.0.9-alpine
|
2021-01-24 21:16:22 +01:00
|
|
|
ports:
|
2021-08-21 19:23:43 +02:00
|
|
|
- ${DEV_REDIS_PORT:-63379}:6379
|
|
|
|
command: "--loglevel verbose"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
|
|
|
|
bootstrap:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/contract-migration:${TAG:-latest}
|
2021-02-10 08:03:11 +01:00
|
|
|
build:
|
2021-07-10 17:46:14 +02:00
|
|
|
context: apps/contract-migration
|
|
|
|
dockerfile: docker/Dockerfile
|
2021-05-02 19:02:45 +02:00
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-02-10 08:03:11 +01:00
|
|
|
environment:
|
2021-09-06 12:06:58 +02:00
|
|
|
DEV_DATA_DIR: ${DEV_DATA_DIR:-/tmp/cic/config}
|
|
|
|
DEV_CONFIG_RESET: $DEV_CONFIG_RESET
|
2021-10-25 20:09:35 +02:00
|
|
|
DEV_FEE_PRICE: $DEV_FEE_PRICE
|
|
|
|
DEV_FEE_LIMIT_CALL: ${DEV_FEE_LIMIT_CALL:-8000000}
|
|
|
|
DEV_DEBUG_LEVEL: ${DEV_DEBUG_LEVEL:-0}
|
|
|
|
DEV_TX_WAIT: $DEV_TX_WAIT
|
|
|
|
DEV_GAS_AMOUNT: $DEV_GAS_AMOUNT
|
2021-10-20 17:02:36 +02:00
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-08-21 19:23:43 +02:00
|
|
|
REDIS_HOST: ${REDIS_HOST:-redis}
|
|
|
|
REDIS_PORT: ${REDIS_PORT:-6379}
|
|
|
|
REDIS_DB: ${REDIS_DB:-0}
|
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis:6379}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis:6379}
|
2021-10-20 17:02:36 +02:00
|
|
|
RUN_MASK: ${RUN_MASK:-0}
|
|
|
|
TOKEN_NAME: $TOKEN_NAME
|
|
|
|
TOKEN_SYMBOL: $TOKEN_SYMBOL
|
|
|
|
TOKEN_TYPE: $TOKEN_TYPE
|
2021-07-05 12:58:08 +02:00
|
|
|
TOKEN_DECIMALS: $TOKEN_DECIMALS
|
2021-10-20 17:02:36 +02:00
|
|
|
TOKEN_REDISTRIBUTION_PERIOD: $TOKEN_REDISTRIBUTION_PERIOD
|
2021-07-05 12:58:08 +02:00
|
|
|
TOKEN_SUPPLY_LIMIT: $TOKEN_SUPPLY_LIMIT
|
2021-09-06 12:06:58 +02:00
|
|
|
TOKEN_DEMURRAGE_LEVEL: $TOKEN_DEMURRAGE_LEVEL
|
2021-07-05 12:58:08 +02:00
|
|
|
TOKEN_SINK_ADDRESS: $TOKEN_SINK_ADDRESS
|
2021-10-20 17:02:36 +02:00
|
|
|
REDIS_HOST_CALLBACK: ${REDIS_HOST_CALLBACK:-redis}
|
|
|
|
REDIS_PORT_CALLBACK: ${REDIS_PORT_CALLBACK:-6379}
|
|
|
|
FAUCET_AMOUNT: ${FAUCET_AMOUNT:-0}
|
2021-10-25 20:09:35 +02:00
|
|
|
WALLET_KEY_FILE: ${WALLET_KEY_FILE:-/root/keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c}
|
2021-03-19 15:19:40 +01:00
|
|
|
command: ["./run_job.sh"]
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
2021-10-20 17:02:36 +02:00
|
|
|
- evm
|
2021-08-21 19:23:43 +02:00
|
|
|
- postgres
|
|
|
|
- redis
|
2021-10-20 17:02:36 +02:00
|
|
|
#- cic-eth-tasker
|
2021-02-10 08:03:11 +01:00
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config
|
|
|
|
|
2021-09-21 08:04:44 +02:00
|
|
|
|
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
cic-signer:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/funga-eth:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/cic-signer
|
|
|
|
dockerfile: Dockerfile
|
2021-08-17 08:46:51 +02:00
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-02-17 10:33:18 +01:00
|
|
|
environment:
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_signer}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-02-17 10:33:18 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
|
|
|
DATABASE_POOL_SIZE: 0
|
|
|
|
SIGNER_SOCKET_PATH: ${SIGNER_SOCKET_PATH:-http://0.0.0.0:8000}
|
|
|
|
SIGNER_SECRET: ${SIGNER_SECRET:-deadbeef}
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2021-03-15 14:22:39 +01:00
|
|
|
volumes:
|
2021-10-20 17:02:36 +02:00
|
|
|
- signer-data:/run/crypto-dev-signer
|
2021-03-15 14:22:39 +01:00
|
|
|
- contract-config:/tmp/cic/config/:ro
|
2021-10-20 17:02:36 +02:00
|
|
|
command: ["python", "/usr/local/bin/funga-ethd", "-vv"]
|
2021-03-15 14:22:39 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
# queue handling for outgoing transactions and incoming transactions
|
|
|
|
cic-eth-tasker:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-eth:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/cic-eth
|
2021-07-10 17:46:14 +02:00
|
|
|
dockerfile: docker/Dockerfile
|
2021-08-17 08:46:51 +02:00
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-03-15 14:22:39 +01:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-03-15 14:22:39 +01:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_eth}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-03-15 14:22:39 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
2021-04-09 15:00:15 +02:00
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-10-20 17:02:36 +02:00
|
|
|
REDIS_PORT: 6379
|
|
|
|
REDIS_HOST: redis
|
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
|
|
|
CELERY_DEBUG: ${CELERY_DEBUG:-1}
|
|
|
|
SIGNER_PROVIDER: ${SIGNER_PROVIDER:-http://cic-signer:8000}
|
|
|
|
SIGNER_SECRET: ${SIGNER_SECRET:-deadbeef}
|
|
|
|
TASKS_TRACE_QUEUE_STATUS: ${TASKS_TRACE_QUEUE_STATUS:-1}
|
2021-10-28 05:18:54 +02:00
|
|
|
ETH_MIN_FEE_PRICE: $ETH_MIN_FEE_PRICE
|
2021-09-16 12:06:53 +02:00
|
|
|
restart: unless-stopped
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
2021-10-20 17:02:36 +02:00
|
|
|
- evm
|
2021-08-21 19:23:43 +02:00
|
|
|
- postgres
|
2021-10-20 17:02:36 +02:00
|
|
|
- redis
|
|
|
|
- cic-signer
|
2021-02-17 10:33:18 +01:00
|
|
|
volumes:
|
2021-10-20 17:02:36 +02:00
|
|
|
- signer-data:/run/crypto-dev-signer
|
2021-02-17 10:33:18 +01:00
|
|
|
- contract-config:/tmp/cic/config/:ro
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
2021-10-20 17:02:36 +02:00
|
|
|
set -a
|
2021-09-15 15:36:09 +02:00
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
2021-10-20 17:02:36 +02:00
|
|
|
set +a
|
|
|
|
./start_tasker.sh --aux-all -q cic-eth -vv
|
2021-08-21 19:23:43 +02:00
|
|
|
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
cic-eth-tracker:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-eth:${TAG:-latest}
|
2021-01-25 17:21:30 +01:00
|
|
|
build:
|
2021-10-20 17:02:36 +02:00
|
|
|
context: apps/cic-eth
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-01-25 17:21:30 +01:00
|
|
|
environment:
|
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
2021-10-20 17:02:36 +02:00
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-01-25 17:21:30 +01:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_eth}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-01-25 17:21:30 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-02-19 08:06:05 +01:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
2021-04-09 15:00:15 +02:00
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-01-29 16:39:42 +01:00
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
2021-05-15 06:36:54 +02:00
|
|
|
CELERY_DEBUG: ${CELERY_DEBUG:-1}
|
2021-10-20 17:02:36 +02:00
|
|
|
CELERY_QUEUE: ${CELERY_QUEUE:-cic-eth}
|
|
|
|
SYNCER_LOOP_INTERVAL: ${SYNCER_LOOP_INTERVAL:-5}
|
|
|
|
SYNCER_NO_HISTORY: ${SYNCER_NO_HISTORY:-1}
|
|
|
|
SYNCER_OFFSET: ${SYNCER_OFFSET:-0}
|
|
|
|
TASKS_TRANSFER_CALLBACKS: ${TASKS_TRANSFER_CALLBACKS:-"cic-eth:cic_eth.callbacks.noop.noop,cic-ussd:cic_ussd.tasks.callback_handler.transaction_callback"}
|
2021-09-16 12:06:53 +02:00
|
|
|
restart: unless-stopped
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
2021-10-20 17:02:36 +02:00
|
|
|
- evm
|
2021-08-21 19:23:43 +02:00
|
|
|
- postgres
|
|
|
|
- redis
|
2021-01-25 17:21:30 +01:00
|
|
|
volumes:
|
2021-02-01 02:08:45 +01:00
|
|
|
- contract-config:/tmp/cic/config/:ro
|
2021-01-25 17:21:30 +01:00
|
|
|
command:
|
2021-01-29 05:26:08 +01:00
|
|
|
- /bin/bash
|
2021-01-25 17:21:30 +01:00
|
|
|
- -c
|
|
|
|
- |
|
2021-10-20 17:02:36 +02:00
|
|
|
set -a
|
2021-09-15 15:36:09 +02:00
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
2021-10-20 17:02:36 +02:00
|
|
|
set +a
|
|
|
|
./start_tracker.sh -vv
|
|
|
|
|
|
|
|
|
|
|
|
cic-eth-dispatcher:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-eth:${TAG:-latest}
|
2021-09-06 21:07:57 +02:00
|
|
|
build:
|
2021-10-20 17:02:36 +02:00
|
|
|
context: apps/cic-eth
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-09-06 21:07:57 +02:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-09-06 21:07:57 +02:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_eth}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-09-06 21:07:57 +02:00
|
|
|
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}
|
2021-10-20 17:02:36 +02:00
|
|
|
CELERY_QUEUE: ${CELERY_QUEUE:-cic-eth}
|
|
|
|
DISPATCHER_LOOP_INTERVAL: ${DISPATCHER_LOOP_INTERVAL:-1}
|
|
|
|
restart: unless-stopped
|
2021-09-06 21:07:57 +02:00
|
|
|
depends_on:
|
2021-10-20 17:02:36 +02:00
|
|
|
- evm
|
2021-09-06 21:07:57 +02:00
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
2021-10-20 17:02:36 +02:00
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
set -a
|
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
|
|
|
set +a
|
|
|
|
./start_dispatcher.sh -vv
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
|
|
|
|
cic-eth-retrier:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-eth:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/cic-eth
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-02-01 02:08:45 +01:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_eth}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-03-01 21:15:17 +01:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-02-01 02:08:45 +01:00
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
2021-10-20 17:02:36 +02:00
|
|
|
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
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
2021-10-20 17:02:36 +02:00
|
|
|
- evm
|
2021-08-21 19:23:43 +02:00
|
|
|
- postgres
|
|
|
|
- redis
|
2021-02-01 02:08:45 +01:00
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
2021-10-20 17:02:36 +02:00
|
|
|
set -a
|
2021-09-15 15:36:09 +02:00
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
2021-10-20 17:02:36 +02:00
|
|
|
set +a
|
|
|
|
./start_retry.sh -vv
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
|
|
|
|
cic-cache-tracker:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-cache:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/cic-cache
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-02-01 02:08:45 +01:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_cache}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-02-01 02:08:45 +01:00
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
2021-10-20 17:02:36 +02:00
|
|
|
CELERY_DEBUG: ${CELERY_DEBUG:-1}
|
|
|
|
CELERY_QUEUE: ${CELERY_QUEUE:-cic-eth}
|
|
|
|
SYNCER_LOOP_INTERVAL: ${SYNCER_LOOP_INTERVAL:-5}
|
|
|
|
SYNCER_OFFSET: ${SYNCER_OFFSET:-0}
|
|
|
|
SYNCER_NO_HISTORY: ${SYNCER_NO_HISTORY:-1}
|
|
|
|
TASKS_TRANSFER_CALLBACKS: ${TASKS_TRANSFER_CALLBACKS:-"cic-eth:cic_eth.callbacks.noop.noop,cic-ussd:cic_ussd.tasks.callback_handler.transaction_callback"}
|
|
|
|
restart: unless-stopped
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
2021-10-20 17:02:36 +02:00
|
|
|
- evm
|
2021-08-21 19:23:43 +02:00
|
|
|
- postgres
|
|
|
|
- redis
|
2021-02-01 02:08:45 +01:00
|
|
|
volumes:
|
2021-10-20 17:02:36 +02:00
|
|
|
- contract-config:/tmp/cic/config/:ro
|
2021-02-01 02:08:45 +01:00
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
2021-10-20 17:02:36 +02:00
|
|
|
set -a
|
2021-09-15 15:36:09 +02:00
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
2021-10-20 17:02:36 +02:00
|
|
|
set +a
|
|
|
|
./start_tracker.sh -vv
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
cic-cache-tasker:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-cache:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/cic-cache
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-02-01 02:08:45 +01:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_cache}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-02-21 16:41:37 +01:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-02-01 02:08:45 +01:00
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
2021-10-20 17:02:36 +02:00
|
|
|
CELERY_DEBUG: ${CELERY_DEBUG:-1}
|
|
|
|
CELERY_QUEUE: ${CELERY_QUEUE:-cic-eth}
|
|
|
|
restart: unless-stopped
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
2021-10-20 17:02:36 +02:00
|
|
|
- evm
|
2021-08-21 19:23:43 +02:00
|
|
|
- postgres
|
|
|
|
- redis
|
2021-02-01 02:08:45 +01:00
|
|
|
volumes:
|
2021-10-20 17:02:36 +02:00
|
|
|
- contract-config:/tmp/cic/config/:ro
|
2021-02-01 02:08:45 +01:00
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
2021-10-20 17:02:36 +02:00
|
|
|
set -a
|
2021-09-15 15:36:09 +02:00
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
2021-10-20 17:02:36 +02:00
|
|
|
set +a
|
|
|
|
/usr/local/bin/cic-cache-taskerd -vv
|
|
|
|
# "/usr/local/bin/uwsgi" \
|
|
|
|
# --wsgi-file /root/cic_cache/runnable/daemons/server.py \
|
|
|
|
# --http :8000 \
|
|
|
|
# --pyargv "-vv"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
|
|
|
|
cic-cache-server:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-cache:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/cic-cache
|
2021-07-10 17:46:14 +02:00
|
|
|
dockerfile: docker/Dockerfile
|
2021-10-20 17:02:36 +02:00
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-02-07 03:29:24 +01:00
|
|
|
environment:
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_cache}
|
2021-02-07 03:29:24 +01:00
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-02-07 03:29:24 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
2021-04-09 15:00:15 +02:00
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-10-20 17:02:36 +02:00
|
|
|
SERVER_PORT: 8000
|
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- ${DEV_CIC_CACHE_SERVER_PORT:-63313}:8000
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2021-10-20 17:02:36 +02:00
|
|
|
- cic-cache-tracker
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
set -a
|
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
|
|
|
set +a
|
|
|
|
/usr/local/bin/uwsgi \
|
|
|
|
--wsgi-file /root/cic_cache/runnable/daemons/server.py \
|
|
|
|
--http :8000 \
|
|
|
|
--pyargv "-vv"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
|
|
|
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
# metadata replacement server for swarm
|
2021-02-09 18:32:36 +01:00
|
|
|
cic-meta-server:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-meta:${TAG:-latest}
|
2021-04-09 15:00:15 +02:00
|
|
|
hostname: meta
|
2021-02-09 18:32:36 +01:00
|
|
|
build:
|
2021-07-10 17:46:14 +02:00
|
|
|
context: apps/cic-meta
|
|
|
|
dockerfile: docker/Dockerfile
|
2021-10-20 17:02:36 +02:00
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-25 20:51:08 +02:00
|
|
|
NPM_REPOSITORY: ${DEV_NPM_REPOSITORY:-https://registry.npmjs.org}
|
2021-02-09 18:32:36 +01:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-02-09 18:32:36 +01:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_meta}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
2021-02-09 18:32:36 +01:00
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
|
|
|
DATABASE_POOL_SIZE: 0
|
|
|
|
DATABASE_SCHEMA_SQL_PATH: ""
|
2021-02-12 03:27:29 +01:00
|
|
|
SERVER_HOST: localhost
|
|
|
|
SERVER_PORT: 8000
|
2021-07-12 18:21:58 +02:00
|
|
|
PGP_EXPORTS_DIR: /root/tests/
|
2021-02-09 18:32:36 +01:00
|
|
|
PGP_PRIVATEKEY_FILE: privatekeys.asc
|
|
|
|
PGP_PASSPHRASE: merman
|
|
|
|
PGP_PUBLICKEY_TRUSTED_FILE: publickeys.asc
|
|
|
|
PGP_PUBLICKEY_ACTIVE_FILE: publickeys.asc
|
|
|
|
PGP_PUBLICKEY_ENCRYPT_FILE: publickeys.asc
|
2021-04-30 10:33:33 +02:00
|
|
|
SCHEMA_SQL_PATH: scripts/initdb/server.postgres.sql
|
2021-09-16 12:06:53 +02:00
|
|
|
restart: on-failure
|
2021-02-09 18:32:36 +01:00
|
|
|
ports:
|
2021-10-20 17:02:36 +02:00
|
|
|
- ${DEV_CIC_META_SERVER_PORT:-63380}:8000
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2021-02-09 18:32:36 +01:00
|
|
|
volumes:
|
2021-06-22 23:15:38 +02:00
|
|
|
- ./apps/contract-migration/testdata/pgp/:/tmp/cic/pgp
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
|
|
|
|
cic-user-tasker:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-user:${TAG:-latest}
|
2021-02-10 18:48:24 +01:00
|
|
|
build:
|
2021-07-10 17:46:14 +02:00
|
|
|
context: apps/cic-ussd
|
|
|
|
dockerfile: docker/Dockerfile
|
2021-10-20 17:02:36 +02:00
|
|
|
args:
|
2021-10-27 16:56:03 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-02-10 18:48:24 +01:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_ussd}
|
|
|
|
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
|
2021-04-16 22:24:07 +02:00
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_BROKER_URL:-redis://redis}
|
2021-10-20 17:02:36 +02:00
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
|
|
|
REDIS_PORT: 6379
|
|
|
|
REDIS_HOST: redis
|
2021-03-05 17:28:07 +01:00
|
|
|
PGP_PASSPHRASE: merman
|
2021-04-09 15:00:15 +02:00
|
|
|
CIC_META_URL: ${CIC_META_URL:-http://meta:8000}
|
2021-10-20 17:02:36 +02:00
|
|
|
restart: unless-stopped
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
2021-10-20 17:02:36 +02:00
|
|
|
#- cic-meta-server
|
2021-10-27 16:56:03 +02:00
|
|
|
#- cic-eth-tasker
|
|
|
|
#- cic-cache-tasker
|
2021-03-05 17:28:07 +01:00
|
|
|
volumes:
|
|
|
|
- ./apps/contract-migration/testdata/pgp/:/usr/src/secrets/
|
2021-10-20 17:02:36 +02:00
|
|
|
command: "/root/start_cic_user_tasker.sh -q cic-ussd -vv"
|
|
|
|
|
2021-02-10 18:48:24 +01:00
|
|
|
|
2021-04-30 10:15:03 +02:00
|
|
|
cic-user-server:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-user:${TAG:-latest}
|
2021-04-30 10:15:03 +02:00
|
|
|
build:
|
2021-07-10 17:46:14 +02:00
|
|
|
context: apps/cic-ussd
|
|
|
|
dockerfile: docker/Dockerfile
|
2021-10-20 17:02:36 +02:00
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-04-30 10:15:03 +02:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_ussd}
|
|
|
|
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}
|
2021-04-30 10:15:03 +02:00
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-09-16 12:06:53 +02:00
|
|
|
restart: on-failure
|
2021-04-30 10:15:03 +02:00
|
|
|
ports:
|
2021-10-20 17:02:36 +02:00
|
|
|
- ${DEV_CIC_USER_SERVER_PORT:-63415}:9500
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2021-10-20 17:02:36 +02:00
|
|
|
- redis
|
2021-08-21 19:23:43 +02:00
|
|
|
command: "/root/start_cic_user_server.sh -vv"
|
2021-04-30 10:15:03 +02:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
|
|
|
|
cic-user-ussd-server:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-user:${TAG:-latest}
|
2021-02-10 18:48:24 +01:00
|
|
|
build:
|
2021-10-20 17:02:36 +02:00
|
|
|
context: apps/cic-ussd
|
2021-07-10 17:46:14 +02:00
|
|
|
dockerfile: docker/Dockerfile
|
2021-10-20 17:02:36 +02:00
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
2021-02-10 18:48:24 +01:00
|
|
|
environment:
|
2021-10-20 17:02:36 +02:00
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_ussd}
|
|
|
|
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}
|
2021-04-09 15:00:15 +02:00
|
|
|
DATABASE_POOL_SIZE: 0
|
2021-10-20 17:02:36 +02:00
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-02-10 18:48:24 +01:00
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
2021-10-20 17:02:36 +02:00
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
|
|
|
REDIS_PORT: 6379
|
|
|
|
REDIS_HOST: redis
|
|
|
|
restart: on-failure
|
2021-08-21 19:23:43 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
2021-10-20 17:02:36 +02:00
|
|
|
- cic-eth-tasker
|
|
|
|
- cic-cache-tasker
|
|
|
|
ports:
|
|
|
|
- ${DEV_CIC_USER_USSD_SERVER_PORT:-63315}:9500
|
2021-03-05 17:28:07 +01:00
|
|
|
volumes:
|
|
|
|
- ./apps/contract-migration/testdata/pgp/:/usr/src/secrets/
|
2021-10-20 17:02:36 +02:00
|
|
|
command: "/root/start_cic_user_ussd_server.sh -vv"
|
|
|
|
|
|
|
|
|
|
|
|
cic-notify-tasker:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/cic-notify:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/cic-notify
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
args:
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
|
|
|
environment:
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_notify}
|
|
|
|
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
|
|
|
|
AFRICASTALKING_API_USERNAME: $AFRICASTALKING_API_USERNAME
|
|
|
|
AFRICASTALKING_API_KEY: $AFRICASTALKING_API_KEY
|
|
|
|
AFRICASTALKING_API_SENDER_ID: $AFRICASTALKING_API_SENDER_ID
|
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis}
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
command: "/root/start_tasker.sh -q cic-notify -vv"
|
|
|
|
|
|
|
|
data-seeding:
|
2021-10-28 05:39:44 +02:00
|
|
|
image: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}/data-seeding:${TAG:-latest}
|
2021-10-20 17:02:36 +02:00
|
|
|
build:
|
|
|
|
context: apps/data-seeding
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
args:
|
2021-10-27 16:56:03 +02:00
|
|
|
NPM_REPOSITORY: ${DEV_NPM_REPOSITORY:-https://registry.npmjs.org}
|
2021-10-28 05:39:44 +02:00
|
|
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
2021-10-20 17:02:36 +02:00
|
|
|
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple}
|
|
|
|
EXTRA_PIP_INDEX_URL: ${EXTRA_PIP_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
|
|
|
EXTRA_PIP_ARGS: $EXTRA_PIP_ARGS
|
|
|
|
environment:
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_ussd}
|
|
|
|
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:6379}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_RESULT_URL:-redis://redis:6379}
|
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
RPC_PROVIDER: ${RPC_PROVIDER:-http://evm:8545}
|
2021-10-27 16:56:03 +02:00
|
|
|
#OUT_DIR: out
|
|
|
|
NUMBER_OF_USERS: ${NUMBER_OF_USERS:-10}
|
|
|
|
#CONFIG_DIR: config
|
2021-10-20 17:02:36 +02:00
|
|
|
CHAIN_SPEC: ${CHAIN_SPEC:-evm:byzantium:8996:bloxberg}
|
2021-10-27 16:56:03 +02:00
|
|
|
TOKEN_SYMBOL: $TOKEN_SYMBOL
|
2021-10-27 11:51:20 +02:00
|
|
|
#KEYSTORE_PATH: keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c
|
|
|
|
WALLET_KEY_FILE: ${WALLET_KEY_FILE:-/root/keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c}
|
2021-10-20 17:02:36 +02:00
|
|
|
USSD_HOST: cic-user-ussd-server
|
|
|
|
USSD_PORT: 9000
|
|
|
|
INCLUDE_BALANCES: y
|
2021-10-27 16:56:03 +02:00
|
|
|
GIFT_THRESHOLD: ${GIFT_THRESHOLD:-0}
|
|
|
|
USSD_SSL: $USSD_SSL
|
|
|
|
DATABASE_NAME_NOTIFY: cic_notify
|
2021-10-20 17:02:36 +02:00
|
|
|
REDIS_HOST: redis
|
|
|
|
REDIS_PORT: 6379
|
|
|
|
REDIS_DB: 0
|
|
|
|
META_HOST: meta
|
|
|
|
META_PORT: 8000
|
|
|
|
META_URL: http://meta:8000
|
2021-10-27 16:56:03 +02:00
|
|
|
# TODO: this should be generated from host/port/ssl
|
2021-10-20 17:02:36 +02:00
|
|
|
USSD_PROVIDER: http://cic-user-ussd-server:9000
|
|
|
|
CELERY_QUEUE: cic-import-ussd
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
set -a
|
|
|
|
if [[ -f /tmp/cic/config/env_reset ]]; then source /tmp/cic/config/env_reset; fi
|
|
|
|
set +a
|
|
|
|
./import_ussd.sh
|
|
|
|
volumes:
|
2021-10-25 20:09:35 +02:00
|
|
|
- contract-config:/tmp/cic/config/:ro
|