Merge branch 'bvander/ussd-integration' into 'master'
ussd configs See merge request grassrootseconomics/cic-internal-integration!6
This commit is contained in:
commit
8680d57a67
@ -1 +1 @@
|
|||||||
Subproject commit d4e5e71308997281e5cd118b9a88299fc5c2c2fd
|
Subproject commit c5ffcc19c5a48b101de689385c1ae971de0a5439
|
@ -35,12 +35,12 @@ services:
|
|||||||
context: apps/bloxbergValidatorSetup
|
context: apps/bloxbergValidatorSetup
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- ${HTTP_PORT_ETH:-8545}:8545
|
- ${HTTP_PORT_ETH:-8545}
|
||||||
- 8546
|
- 8546
|
||||||
- 30303
|
- 30303
|
||||||
volumes:
|
volumes:
|
||||||
- ./apps/bloxbergValidatorSetup/keys:/root/keys # stores the signing key locally
|
- ./apps/bloxbergValidatorSetup/keys:/root/keys # stores the signing key locally
|
||||||
- bloxberg-data:/root/.local/share/io.parity.ethereum/chains/Bloxberg/db/
|
- bloxberg-data:/root/.local/share/io.parity.ethereum/
|
||||||
|
|
||||||
# See contents of /initdb/create_db.sql for app user, password and databases
|
# See contents of /initdb/create_db.sql for app user, password and databases
|
||||||
postgres:
|
postgres:
|
||||||
@ -49,7 +49,7 @@ services:
|
|||||||
POSTGRES_HOST_AUTH_METHOD: trust # for postgres user access w/o password. Obvioulsy not safe but allows easy elevated debugging.
|
POSTGRES_HOST_AUTH_METHOD: trust # for postgres user access w/o password. Obvioulsy not safe but allows easy elevated debugging.
|
||||||
PGDATA: /tmp/cic/postgres
|
PGDATA: /tmp/cic/postgres
|
||||||
ports:
|
ports:
|
||||||
- ${HTTP_PORT_POSTGRES:-5432}
|
- 5432
|
||||||
volumes:
|
volumes:
|
||||||
- ./scripts/initdb/create_db.sql:/docker-entrypoint-initdb.d/1-create_all_db.sql # init db scripts will run in order at container start
|
- ./scripts/initdb/create_db.sql:/docker-entrypoint-initdb.d/1-create_all_db.sql # init db scripts will run in order at container start
|
||||||
- postgres-db:/tmp/cic/postgres
|
- postgres-db:/tmp/cic/postgres
|
||||||
@ -75,8 +75,8 @@ services:
|
|||||||
|
|
||||||
contract-migration:
|
contract-migration:
|
||||||
build:
|
build:
|
||||||
context: apps
|
context: apps/
|
||||||
dockerfile: apps/contract-migration/docker/
|
dockerfile: contract-migration/docker/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
# ETH_PROVIDER should be broken out into host/port but cic-eth expects this
|
# ETH_PROVIDER should be broken out into host/port but cic-eth expects this
|
||||||
ETH_PROVIDER: http://eth:8545
|
ETH_PROVIDER: http://eth:8545
|
||||||
@ -90,35 +90,35 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- contract-config:/tmp/cic/config
|
- contract-config:/tmp/cic/config
|
||||||
|
|
||||||
cic-cache-tracker:
|
# cic-cache-tracker:
|
||||||
# image: registry.gitlab.com/grassrootseconomics/cic-cache:master-latest
|
# # image: registry.gitlab.com/grassrootseconomics/cic-cache:master-latest
|
||||||
build: apps/cic-cache
|
# build: apps/cic-cache
|
||||||
environment:
|
# environment:
|
||||||
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS # supplied at contract-config after contract provisioning
|
# CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS # supplied at contract-config after contract provisioning
|
||||||
ETH_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
# ETH_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
||||||
BANCOR_DIR: ${BANCOR_DIR:-/usr/local/share/cic/bancor}
|
# BANCOR_DIR: ${BANCOR_DIR:-/usr/local/share/cic/bancor}
|
||||||
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
# DATABASE_USER: ${DATABASE_USER:-grassroots}
|
||||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala} # this is is set at initdb see: postgres/initdb/create_db.sql
|
# DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala} # this is is set at initdb see: postgres/initdb/create_db.sql
|
||||||
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
# DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
||||||
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
# DATABASE_PORT: ${DATABASE_PORT:-5432}
|
||||||
DATABASE_NAME: ${DATABASE_NAME_CIC_CACHE:-cic_cache}
|
# DATABASE_NAME: ${DATABASE_NAME_CIC_CACHE:-cic_cache}
|
||||||
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
# DATABASE_ENGINE: ${DATABASE_ENGINE:-postgres}
|
||||||
DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
# DATABASE_DRIVER: ${DATABASE_DRIVER:-psycopg2}
|
||||||
ETH_ABI_DIR: ${ETH_ABI_DIR:-/usr/local/share/cic/solidity/abi}
|
# ETH_ABI_DIR: ${ETH_ABI_DIR:-/usr/local/share/cic/solidity/abi}
|
||||||
deploy:
|
# deploy:
|
||||||
restart_policy:
|
# restart_policy:
|
||||||
condition: on-failure
|
# condition: on-failure
|
||||||
depends_on:
|
# depends_on:
|
||||||
- postgres
|
# - postgres
|
||||||
- eth
|
# - eth
|
||||||
command:
|
# command:
|
||||||
- /bin/sh
|
# - /bin/sh
|
||||||
- -c
|
# - -c
|
||||||
- |
|
# - |
|
||||||
if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
# if [[ -f /tmp/cic/config/.env ]]; then source /tmp/cic/config/.env; fi
|
||||||
/usr/local/bin/cic-cache-tracker -vv
|
# /usr/local/bin/cic-cache-tracker -vv
|
||||||
volumes:
|
# volumes:
|
||||||
- contract-config:/tmp/cic/config/:ro
|
# - contract-config:/tmp/cic/config/:ro
|
||||||
# entrypoint: ["/usr/local/bin/cic-cache-tracker", "-vv"]
|
# entrypoint: ["/usr/local/bin/cic-cache-tracker", "-vv"]
|
||||||
# command: "/usr/local/bin/cic-cache-tracker -vv"
|
# command: "/usr/local/bin/cic-cache-tracker -vv"
|
||||||
|
|
||||||
@ -453,43 +453,49 @@ services:
|
|||||||
# - ${LOCAL_VOLUME_DIR:-/tmp/cic}/pgp:/tmp/cic/pgp
|
# - ${LOCAL_VOLUME_DIR:-/tmp/cic}/pgp:/tmp/cic/pgp
|
||||||
# command: "/root/start_server.sh -vv"
|
# command: "/root/start_server.sh -vv"
|
||||||
|
|
||||||
# cic-ussd-server:
|
cic-ussd-server:
|
||||||
# image: grassrootseconomics:cic-ussd
|
# image: grassrootseconomics:cic-ussd
|
||||||
# environment:
|
build:
|
||||||
# DATABASE_USER: $DATABASE_USER
|
context: apps/
|
||||||
# DATABASE_HOST: $DATABASE_HOST
|
dockerfile: cic-ussd/docker/Dockerfile
|
||||||
# DATABASE_PORT: $DATABASE_PORT
|
environment:
|
||||||
# DATABASE_PASSWORD: $DATABASE_PASSWORD
|
DATABASE_USER: grassroots
|
||||||
# DATABASE_NAME: $DATABASE_NAME_CIC_USSD
|
DATABASE_HOST: postgres
|
||||||
# DATABASE_ENGINE: $DATABASE_ENGINE
|
DATABASE_PORT: 5432
|
||||||
# DATABASE_DRIVER: $DATABASE_DRIVER
|
DATABASE_PASSWORD: tralala
|
||||||
# SERVER_PORT: 80
|
DATABASE_NAME: cic_ussd
|
||||||
# ports:
|
DATABASE_ENGINE: postgresql
|
||||||
# - ${HTTP_PORT_CIC_USSD}:80
|
DATABASE_DRIVER: psycopg2
|
||||||
# depends_on:
|
SERVER_PORT: 80
|
||||||
# - postgres
|
ports:
|
||||||
# - redis
|
- 80:8082
|
||||||
# deploy:
|
depends_on:
|
||||||
# restart_policy:
|
- postgres
|
||||||
# condition: on-failure
|
- redis
|
||||||
# command: "/root/start_uwsgi.sh"
|
deploy:
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
command: "/root/start_uwsgi.sh"
|
||||||
|
|
||||||
# cic-ussd-tasker:
|
cic-ussd-tasker:
|
||||||
# image: grassrootseconomics:cic-ussd
|
# image: grassrootseconomics:cic-ussd
|
||||||
# environment:
|
build:
|
||||||
# DATABASE_USER: $DATABASE_USER
|
context: apps
|
||||||
# DATABASE_HOST: $DATABASE_HOST
|
dockerfile: cic-ussd/docker/Dockerfile
|
||||||
# DATABASE_PORT: $DATABASE_PORT
|
environment:
|
||||||
# DATABASE_PASSWORD: $DATABASE_PASSWORD
|
DATABASE_USER: grassroots
|
||||||
# DATABASE_NAME: $DATABASE_NAME_CIC_USSD
|
DATABASE_HOST: postgres
|
||||||
# DATABASE_ENGINE: $DATABASE_ENGINE
|
DATABASE_PORT: 5432
|
||||||
# DATABASE_DRIVER: $DATABASE_DRIVER
|
DATABASE_PASSWORD: tralala
|
||||||
# CELERY_BROKER_URL: $CELERY_BROKER_URL
|
DATABASE_NAME: cic_ussd
|
||||||
# CELERY_RESULT_URL: $CELERY_RESULT_URL
|
DATABASE_ENGINE: postgresql
|
||||||
# depends_on:
|
DATABASE_DRIVER: psycopg2
|
||||||
# - postgres
|
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis}
|
||||||
# - redis
|
CELERY_RESULT_URL: ${CELERY_BROKER_URL:-redis://redis}
|
||||||
# deploy:
|
depends_on:
|
||||||
# restart_policy:
|
- postgres
|
||||||
# condition: on-failure
|
- redis
|
||||||
# command: "/root/start_tasker.sh -q cic-ussd"
|
deploy:
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
command: "/root/start_tasker.sh -q cic-ussd"
|
||||||
|
@ -4,6 +4,7 @@ CREATE DATABASE "cic_eth";
|
|||||||
CREATE DATABASE "cic_notify";
|
CREATE DATABASE "cic_notify";
|
||||||
CREATE DATABASE "cic_meta";
|
CREATE DATABASE "cic_meta";
|
||||||
CREATE DATABASE "cic_signer";
|
CREATE DATABASE "cic_signer";
|
||||||
|
CREATE DATABASE "cic_ussd";
|
||||||
GRANT ALL PRIVILEGES
|
GRANT ALL PRIVILEGES
|
||||||
ON DATABASE "cic_cache", "cic_eth", "cic_notify", "cic_meta", "cic_signer"
|
ON DATABASE "cic_cache", "cic_eth", "cic_notify", "cic_meta", "cic_signer", "cic_ussd"
|
||||||
TO grassroots;
|
TO grassroots;
|
||||||
|
Loading…
Reference in New Issue
Block a user