2021-01-24 21:16:22 +01:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
ganache-db: {}
|
|
|
|
postgres-db: {}
|
|
|
|
bee-data: {}
|
2021-01-25 17:21:30 +01:00
|
|
|
signer-data: {}
|
2021-02-01 17:35:35 +01:00
|
|
|
bloxberg-data: {}
|
2021-02-02 17:23:12 +01:00
|
|
|
contract-config:
|
|
|
|
driver_opts:
|
|
|
|
type: local
|
|
|
|
o: bind
|
|
|
|
device: ./service-configs
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: cic-network
|
|
|
|
|
|
|
|
services:
|
2021-02-01 17:35:35 +01:00
|
|
|
# eth:
|
|
|
|
# image: trufflesuite/ganache-cli
|
|
|
|
# ports:
|
|
|
|
# - ${HTTP_PORT_ETH:-8545}
|
|
|
|
# - ${WS_PORT_ETH:-8546}
|
|
|
|
# # Note! -e switch doesnt work, whatever you put there, it will be 100
|
|
|
|
# command: "-i 8996 -e 1000 -l 90000000 \
|
|
|
|
# -m '${DEV_MNEMONIC:-\"history stumble mystery avoid embark arrive mom foil pledge keep grain dice\"}' \
|
|
|
|
# -v --db /tmp/cic/ganache/ganache.db \
|
|
|
|
# --noVMErrorsOnRPCResponse --allowUnlimitedContractSize"
|
|
|
|
# volumes:
|
|
|
|
# - ganache-db:/tmp/cic/ganache
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-02-01 02:08:45 +01:00
|
|
|
eth:
|
2021-02-01 17:56:36 +01:00
|
|
|
build:
|
|
|
|
context: apps/bloxbergValidatorSetup
|
2021-02-01 02:08:45 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2021-02-12 03:27:29 +01:00
|
|
|
- ${DEV_ETH_PORT_HTTP:-63545}:8545
|
2021-03-21 19:32:53 +01:00
|
|
|
- ${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
|
|
|
# See contents of /initdb/create_db.sql for app user, password and databases
|
|
|
|
postgres:
|
|
|
|
image: postgres:12.5-alpine
|
|
|
|
environment:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust # for postgres user access w/o password. Obvioulsy not safe but allows easy elevated debugging.
|
2021-02-09 18:32:36 +01:00
|
|
|
# PGDATA: /tmp/cic/postgres
|
2021-01-24 21:16:22 +01:00
|
|
|
ports:
|
2021-02-12 03:27:29 +01: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-02-09 18:32:36 +01:00
|
|
|
- ./scripts/initdb/create_db.sql:/docker-entrypoint-initdb.d/1-create_all_db.sql
|
|
|
|
- ./apps/cic-meta/scripts/initdb/postgresql.sh:/docker-entrypoint-initdb.d/2-init-cic-meta.sh
|
2021-03-15 14:20:18 +01:00
|
|
|
- ./apps/cic-cache/db/psycopg2/db.sql:/docker-entrypoint-initdb.d/3-init-cic-meta.sql
|
2021-02-09 18:32:36 +01:00
|
|
|
- postgres-db:/var/lib/postgresql/data
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:6.0.9-alpine
|
|
|
|
ports:
|
2021-02-12 03:27:29 +01:00
|
|
|
- ${DEV_REDIS_PORT:-63379}:6379
|
2021-01-24 21:16:22 +01:00
|
|
|
command: "--loglevel verbose"
|
|
|
|
|
|
|
|
bee:
|
|
|
|
image: ethersphere/bee:0.4.1
|
|
|
|
container_name: bee
|
|
|
|
environment:
|
|
|
|
BEE_NETWORK_ID: ${BEE_NETWORK_ID:-313}
|
2021-01-26 03:25:24 +01:00
|
|
|
BEE_PASSWORD: ${BEE_PASSWORD:-password}
|
2021-01-24 21:16:22 +01:00
|
|
|
ports:
|
2021-02-12 03:27:29 +01:00
|
|
|
- ${DEV_BEE_PORT:-63633}:1633
|
|
|
|
- ${DEV_BEE_PORT_DEBUG:-63635}:1635
|
2021-01-24 21:16:22 +01:00
|
|
|
command: "start --swap-enable=false --standalone"
|
|
|
|
volumes:
|
|
|
|
- bee-data:/tmp/cic/bee
|
|
|
|
|
|
|
|
contract-migration:
|
2021-02-10 08:03:11 +01:00
|
|
|
build:
|
|
|
|
context: apps/
|
|
|
|
dockerfile: contract-migration/docker/Dockerfile
|
2021-03-21 19:32:53 +01:00
|
|
|
# image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/contract-migration:latest
|
2021-02-10 08:03:11 +01:00
|
|
|
environment:
|
|
|
|
# ETH_PROVIDER should be broken out into host/port but cic-eth expects this
|
|
|
|
ETH_PROVIDER: http://eth:8545
|
|
|
|
# And these two are for wait-for-it (could parse this)
|
|
|
|
ETH_PROVIDER_HOST: eth
|
|
|
|
ETH_PROVIDER_PORT: 8545
|
2021-02-21 16:41:37 +01:00
|
|
|
CIC_CHAIN_SPEC: ${CIC_CHAIN_SPEC:-evm:bloxberg:8996}
|
2021-02-10 08:03:11 +01:00
|
|
|
CIC_DATA_DIR: ${CIC_DATA_DIR:-/tmp/cic/config}
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DEV_DATABASE_NAME_CIC_ETH:-cic_eth}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgresql}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-postgres}
|
|
|
|
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}
|
|
|
|
DEV_PIP_EXTRA_INDEX_URL: ${DEV_PIP_EXTRA_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
2021-03-29 15:27:53 +02:00
|
|
|
RUN_MASK: ${RUN_MASK:-0} # bit flags; 1: contract migrations 2: seed data
|
2021-03-29 21:29:29 +02:00
|
|
|
DEV_FAUCET_AMOUNT: ${DEV_FAUCET_AMOUNT:-0}
|
2021-03-19 15:19:40 +01:00
|
|
|
command: ["./run_job.sh"]
|
2021-03-29 15:27:53 +02:00
|
|
|
#command: ["./reset.sh"]
|
2021-02-10 08:03:11 +01:00
|
|
|
depends_on:
|
|
|
|
- eth
|
2021-02-12 03:27:29 +01:00
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
- cic-eth-tasker
|
2021-02-10 08:03:11 +01:00
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config
|
|
|
|
|
2021-02-17 10:33:18 +01:00
|
|
|
cic-cache-tracker:
|
|
|
|
build:
|
2021-02-18 06:04:30 +01:00
|
|
|
context: apps
|
|
|
|
dockerfile: cic-cache/docker/Dockerfile
|
2021-02-17 10:33:18 +01:00
|
|
|
environment:
|
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS # supplied at contract-config after contract provisioning
|
|
|
|
ETH_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala} # this is is set at initdb see: postgres/initdb/create_db.sql
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME_CIC_CACHE:-cic_cache}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
|
|
|
DATABASE_DEBUG: 1
|
|
|
|
ETH_ABI_DIR: ${ETH_ABI_DIR:-/usr/local/share/cic/solidity/abi}
|
|
|
|
CIC_TRUST_ADDRESS: ${DEV_ETH_ACCOUNT_CONTRACT_DEPLOYER:-0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C}
|
2021-02-21 16:41:37 +01:00
|
|
|
CIC_CHAIN_SPEC: ${CIC_CHAIN_SPEC:-evm:bloxberg:8996}
|
2021-02-17 10:33:18 +01:00
|
|
|
CELERY_BROKER_URL: redis://redis:6379
|
|
|
|
CELERY_RESULT_URL: redis://redis:6379
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- postgres
|
|
|
|
- eth
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
2021-04-02 15:20:05 +02:00
|
|
|
/usr/local/bin/cic-cache-trackerd -vv -c /usr/local/etc/cic-cache
|
2021-03-15 14:22:39 +01:00
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
|
|
|
|
|
|
|
cic-cache-tasker:
|
|
|
|
build:
|
|
|
|
context: apps
|
|
|
|
dockerfile: cic-cache/docker/Dockerfile
|
|
|
|
environment:
|
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS # supplied at contract-config after contract provisioning
|
|
|
|
ETH_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala} # this is is set at initdb see: postgres/initdb/create_db.sql
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME_CIC_CACHE:-cic_cache}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
|
|
|
DATABASE_DEBUG: 1
|
|
|
|
ETH_ABI_DIR: ${ETH_ABI_DIR:-/usr/local/share/cic/solidity/abi}
|
|
|
|
CIC_TRUST_ADDRESS: ${DEV_ETH_ACCOUNT_CONTRACT_DEPLOYER:-0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C}
|
|
|
|
CIC_CHAIN_SPEC: ${CIC_CHAIN_SPEC:-evm:bloxberg:8996}
|
|
|
|
CELERY_BROKER_URL: redis://redis:6379
|
|
|
|
CELERY_RESULT_URL: redis://redis:6379
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- postgres
|
|
|
|
- eth
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
|
|
|
/usr/local/bin/cic-cache-taskerd -vv
|
2021-02-17 10:33:18 +01:00
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-02-17 10:33:18 +01:00
|
|
|
cic-cache-server:
|
|
|
|
build:
|
2021-02-18 06:04:30 +01:00
|
|
|
context: apps
|
|
|
|
dockerfile: cic-cache/docker/Dockerfile
|
2021-02-17 10:33:18 +01:00
|
|
|
environment:
|
|
|
|
DATABASE_USER: $DATABASE_USER
|
|
|
|
DATABASE_HOST: $DATABASE_HOST
|
|
|
|
DATABASE_PORT: $DATABASE_PORT
|
|
|
|
DATABASE_PASSWORD: $DATABASE_PASSWORD
|
|
|
|
DATABASE_NAME: $DATABASE_NAME_CIC_CACHE
|
|
|
|
DATABASE_DEBUG: 1
|
|
|
|
PGPASSWORD: $DATABASE_PASSWORD
|
|
|
|
SERVER_PORT: 8000
|
|
|
|
ports:
|
|
|
|
- ${HTTP_PORT_CIC_CACHE:-63313}:8000
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
|
|
|
"/usr/local/bin/uwsgi" \
|
2021-03-15 14:22:39 +01:00
|
|
|
--wsgi-file /usr/src/cic-cache/cic_cache/runnable/serverd.py \
|
2021-03-04 16:06:14 +01:00
|
|
|
--http :8000 \
|
2021-02-17 10:33:18 +01:00
|
|
|
--pyargv -vv
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-01-25 17:21:30 +01:00
|
|
|
cic-eth-tasker:
|
|
|
|
# image: grassrootseconomics:cic-eth-service
|
|
|
|
build:
|
2021-01-26 03:22:53 +01:00
|
|
|
context: apps/
|
2021-01-29 05:26:08 +01:00
|
|
|
dockerfile: cic-eth/docker/Dockerfile
|
2021-01-25 17:21:30 +01:00
|
|
|
environment:
|
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
ETH_GAS_PROVIDER_ADDRESS: $DEV_ETH_ACCOUNT_GAS_PROVIDER
|
2021-01-29 16:39:42 +01:00
|
|
|
ETH_PROVIDER: http://eth:8545
|
|
|
|
ETH_ABI_DIR: ${ETH_ABI_DIR:-/usr/local/share/cic/solidity/abi}
|
2021-01-25 17:21:30 +01:00
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
2021-02-10 08:03:11 +01:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME_CIC_ETH:-cic_eth}
|
2021-01-25 17:21:30 +01:00
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-02-19 08:06:05 +01:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
2021-01-25 17:21:30 +01:00
|
|
|
PGPASSWORD: ${DATABASE_PASSWORD:-tralala}
|
2021-02-21 16:41:37 +01:00
|
|
|
CIC_CHAIN_SPEC: ${CIC_CHAIN_SPEC:-evm:bloxberg:8996}
|
2021-01-25 17:21:30 +01:00
|
|
|
BANCOR_DIR: ${BANCOR_DIR:-/usr/local/share/cic/bancor}
|
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-03-29 15:27:53 +02:00
|
|
|
SIGNER_SOCKET_PATH: ${SIGNER_SOCKET_PATH:-ipc:///run/crypto-dev-signer/jsonrpc.ipc}
|
2021-01-25 17:21:30 +01:00
|
|
|
SIGNER_SECRET: ${SIGNER_SECRET:-deadbeef}
|
|
|
|
ETH_ACCOUNT_ACCOUNTS_INDEX_WRITER: ${DEV_ETH_ACCOUNT_ACCOUNTS_INDEX_WRITER:-0xACB0BC74E1686D62dE7DC6414C999EA60C09F0eA}
|
2021-02-06 17:26:20 +01:00
|
|
|
TASKS_TRACE_QUEUE_STATUS: ${TASKS_TRACE_QUEUE_STATUS:-1}
|
2021-01-25 17:21:30 +01:00
|
|
|
depends_on:
|
|
|
|
- eth
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
volumes:
|
|
|
|
- signer-data:/tmp/cic/signer
|
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
|
|
|
|
- |
|
|
|
|
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
2021-03-07 19:01:44 +01:00
|
|
|
./start_tasker.sh -q cic-eth -vv
|
2021-01-29 05:26:08 +01:00
|
|
|
# command: [/bin/sh, "./start_tasker.sh", -q, cic-eth, -vv ]
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-03-01 21:15:17 +01:00
|
|
|
cic-eth-tracker:
|
2021-02-01 02:08:45 +01:00
|
|
|
build:
|
|
|
|
context: apps/
|
|
|
|
dockerfile: cic-eth/docker/Dockerfile
|
|
|
|
environment:
|
|
|
|
ETH_PROVIDER: http://eth:8545
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
2021-02-12 03:27:29 +01:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME_CIC_CACHE:-cic_eth}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-03-01 21:15:17 +01:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
2021-02-21 16:41:37 +01:00
|
|
|
CIC_CHAIN_SPEC: ${CIC_CHAIN_SPEC:-evm:bloxberg:8996}
|
2021-02-08 19:55:20 +01:00
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
#BANCOR_DIR: $BANCOR_DIR
|
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-02-08 19:55:20 +01:00
|
|
|
TASKS_TRANSFER_CALLBACKS: $TASKS_TRANSFER_CALLBACKS
|
2021-02-01 02:08:45 +01:00
|
|
|
depends_on:
|
|
|
|
- eth
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
2021-03-29 15:27:53 +02:00
|
|
|
./start_tracker.sh -vv -c /usr/local/etc/cic-eth
|
2021-02-01 02:08:45 +01:00
|
|
|
# command: "/root/start_manager.sh head -vv"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
2021-02-01 02:08:45 +01:00
|
|
|
cic-eth-dispatcher:
|
|
|
|
build:
|
|
|
|
context: apps/
|
|
|
|
dockerfile: cic-eth/docker/Dockerfile
|
|
|
|
environment:
|
|
|
|
ETH_PROVIDER: http://eth:8545
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
2021-02-12 03:27:29 +01:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME_CIC_CACHE:-cic_eth}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-02-21 16:41:37 +01:00
|
|
|
CIC_CHAIN_SPEC: ${CIC_CHAIN_SPEC:-evm:bloxberg:8996}
|
2021-02-08 19:55:20 +01:00
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
#BANCOR_DIR: $BANCOR_DIR
|
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-02-08 19:55:20 +01:00
|
|
|
TASKS_TRANSFER_CALLBACKS: $TASKS_TRANSFER_CALLBACKS
|
2021-04-02 15:16:27 +02:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-false}
|
|
|
|
#DATABASE_DEBUG: 1
|
2021-02-08 19:55:20 +01:00
|
|
|
|
2021-02-01 02:08:45 +01:00
|
|
|
depends_on:
|
|
|
|
- eth
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
2021-03-06 18:55:51 +01:00
|
|
|
./start_dispatcher.sh -q cic-eth -vv
|
2021-02-01 02:08:45 +01:00
|
|
|
# command: "/root/start_dispatcher.sh -q cic-eth -vv"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
2021-02-01 02:08:45 +01:00
|
|
|
cic-eth-retrier:
|
|
|
|
build:
|
|
|
|
context: apps/
|
|
|
|
dockerfile: cic-eth/docker/Dockerfile
|
|
|
|
environment:
|
|
|
|
ETH_PROVIDER: http://eth:8545
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
2021-02-12 03:27:29 +01:00
|
|
|
DATABASE_NAME: ${DATABASE_NAME_CIC_CACHE:-cic_eth}
|
2021-02-01 02:08:45 +01:00
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
2021-02-21 16:41:37 +01:00
|
|
|
DATABASE_DEBUG: ${DATABASE_DEBUG:-0}
|
|
|
|
CIC_CHAIN_SPEC: ${CIC_CHAIN_SPEC:-evm:bloxberg:8996}
|
2021-02-08 19:55:20 +01:00
|
|
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
|
|
|
#BANCOR_DIR: $BANCOR_DIR
|
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-02-08 19:55:20 +01:00
|
|
|
TASKS_TRANSFER_CALLBACKS: $TASKS_TRANSFER_CALLBACKS
|
2021-02-12 03:27:29 +01:00
|
|
|
CIC_TX_RETRY_DELAY: 15
|
2021-04-02 15:16:27 +02:00
|
|
|
BATCH_SIZE: ${RETRIER_BATCH_SIZE:-50}
|
|
|
|
#DATABASE_DEBUG: 1
|
2021-02-01 02:08:45 +01:00
|
|
|
depends_on:
|
|
|
|
- eth
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
volumes:
|
|
|
|
- contract-config:/tmp/cic/config/:ro
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
2021-04-02 15:16:27 +02:00
|
|
|
./start_retry.sh -vv
|
2021-02-01 02:08:45 +01:00
|
|
|
# command: "/root/start_retry.sh -q cic-eth -vv"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
2021-02-17 10:33:18 +01:00
|
|
|
# cic-eth-server:
|
|
|
|
# build:
|
|
|
|
# context: apps/
|
|
|
|
# dockerfile: cic-eth/docker/Dockerfile
|
|
|
|
# environment:
|
|
|
|
# CIC_CHAIN_SPEC: $CIC_CHAIN_SPEC
|
|
|
|
# CELERY_BROKER_URL: $CELERY_BROKER_URL
|
|
|
|
# CELERY_RESULT_URL: $CELERY_RESULT_URL
|
|
|
|
# SERVER_PORT: 8000
|
|
|
|
# depends_on:
|
|
|
|
# - eth
|
|
|
|
# - postgres
|
|
|
|
# - redis
|
|
|
|
# ports:
|
|
|
|
# - ${HTTP_PORT_CIC_ETH:-63314}:8000
|
|
|
|
# deploy:
|
|
|
|
# restart_policy:
|
|
|
|
# condition: on-failure
|
|
|
|
# volumes:
|
|
|
|
# - contract-config:/tmp/cic/config/:ro
|
|
|
|
# command:
|
|
|
|
# - /bin/bash
|
|
|
|
# - -c
|
|
|
|
# - |
|
|
|
|
# if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
|
|
|
# "/usr/local/bin/uwsgi" \
|
|
|
|
# --wsgi-file /usr/src/cic-eth/cic_eth/runnable/server_agent.py \
|
|
|
|
# --http :80 \
|
|
|
|
# --pyargv -vv
|
|
|
|
## entrypoint:
|
|
|
|
## - "/usr/local/bin/uwsgi"
|
|
|
|
## - "--wsgi-file"
|
|
|
|
## - "/usr/src/cic-eth/cic_eth/runnable/server_agent.py"
|
|
|
|
## - "--http"
|
|
|
|
## - ":80"
|
|
|
|
# # command: "--pyargv -vv"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-07 03:29:24 +01:00
|
|
|
cic-notify-tasker:
|
2021-02-11 05:44:15 +01:00
|
|
|
build:
|
|
|
|
context: apps/
|
|
|
|
dockerfile: cic-notify/docker/Dockerfile
|
2021-02-07 03:29:24 +01:00
|
|
|
environment:
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
|
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME_CIC_NOTIFY:-cic_notify}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
|
|
|
PGPASSWORD: ${DATABASE_PASSWORD:-tralala}
|
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
TASKS_AFRICASTALKING: $TASKS_AFRICASTALKING
|
|
|
|
TASKS_SMS_DB: $TASKS_SMS_DB
|
|
|
|
TASKS_LOG: $TASKS_LOG
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
command: "/root/start_tasker.sh -q cic-notify"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
|
2021-02-09 18:32:36 +01:00
|
|
|
cic-meta-server:
|
|
|
|
build:
|
|
|
|
context: apps/
|
|
|
|
dockerfile: cic-meta/docker/Dockerfile
|
|
|
|
environment:
|
|
|
|
DATABASE_NAME: ${DATABASE_NAME:-cic_meta}
|
|
|
|
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
|
|
|
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
|
|
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
|
|
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
|
|
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
2021-02-12 03:27:29 +01:00
|
|
|
SERVER_HOST: localhost
|
|
|
|
SERVER_PORT: 8000
|
2021-02-09 18:32:36 +01:00
|
|
|
DATABASE_SCHEMA_SQL_PATH: ""
|
|
|
|
PGP_EXPORTS_DIR: /tmp/src/cic-meta/tests/
|
|
|
|
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
|
|
|
|
ports:
|
2021-02-12 03:27:29 +01:00
|
|
|
- ${HTTP_PORT_CIC_META:-63380}:8000
|
2021-02-09 18:32:36 +01:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
volumes:
|
|
|
|
- ${LOCAL_VOLUME_DIR:-/tmp/cic}/pgp:/tmp/cic/pgp
|
2021-02-24 15:47:34 +01:00
|
|
|
# command: "/root/start_server.sh -vv"
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-02-10 18:48:24 +01:00
|
|
|
cic-ussd-server:
|
|
|
|
# image: grassrootseconomics:cic-ussd
|
|
|
|
build:
|
|
|
|
context: apps/
|
|
|
|
dockerfile: cic-ussd/docker/Dockerfile
|
|
|
|
environment:
|
|
|
|
DATABASE_USER: grassroots
|
|
|
|
DATABASE_HOST: postgres
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
DATABASE_PASSWORD: tralala
|
|
|
|
DATABASE_NAME: cic_ussd
|
|
|
|
DATABASE_ENGINE: postgresql
|
|
|
|
DATABASE_DRIVER: psycopg2
|
2021-03-05 17:28:07 +01:00
|
|
|
PGP_PASSPHRASE: merman
|
2021-02-12 03:27:29 +01:00
|
|
|
SERVER_PORT: 8000
|
2021-02-10 18:48:24 +01:00
|
|
|
ports:
|
2021-02-12 03:27:29 +01:00
|
|
|
- ${HTTP_PORT_CIC_USSD:-63315}:8000
|
2021-02-10 18:48:24 +01:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
2021-03-05 17:28:07 +01:00
|
|
|
volumes:
|
|
|
|
- ./apps/contract-migration/testdata/pgp/:/usr/src/secrets/
|
2021-02-10 18:48:24 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
command: "/root/start_uwsgi.sh"
|
|
|
|
|
|
|
|
cic-ussd-tasker:
|
|
|
|
# image: grassrootseconomics:cic-ussd
|
|
|
|
build:
|
|
|
|
context: apps
|
|
|
|
dockerfile: cic-ussd/docker/Dockerfile
|
|
|
|
environment:
|
|
|
|
DATABASE_USER: grassroots
|
|
|
|
DATABASE_HOST: postgres
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
DATABASE_PASSWORD: tralala
|
|
|
|
DATABASE_NAME: cic_ussd
|
|
|
|
DATABASE_ENGINE: postgresql
|
|
|
|
DATABASE_DRIVER: psycopg2
|
|
|
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
|
|
|
CELERY_RESULT_URL: ${CELERY_BROKER_URL:-redis://redis}
|
2021-03-05 17:28:07 +01:00
|
|
|
PGP_PASSPHRASE: merman
|
2021-02-10 18:48:24 +01:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
2021-03-05 17:28:07 +01:00
|
|
|
volumes:
|
|
|
|
- ./apps/contract-migration/testdata/pgp/:/usr/src/secrets/
|
2021-02-10 18:48:24 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
command: "/root/start_tasker.sh -q cic-ussd"
|