fix: config.toml and dev docker-compose

This commit is contained in:
Mohamed Sohail 2023-04-06 06:12:37 +00:00
parent a98fe958a3
commit e67a42ede3
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
2 changed files with 43 additions and 46 deletions

View File

@ -5,14 +5,13 @@ address = ":5000"
metrics = true metrics = true
[chain] [chain]
rpc_endpoint = "" rpc_endpoint = ""
testnet = true testnet = true
devnet = false
registry_address = "" registry_address = ""
[system] [system]
private_key = "" private_key = ""
public_key = "" public_key = ""
[postgres] [postgres]
dsn = "" dsn = ""
@ -20,17 +19,15 @@ dsn = ""
[redis] [redis]
# Used for locks and the Noncestore # Used for locks and the Noncestore
# Ideally use DB 1 # Ideally use DB 1
dsn = "" dsn = ""
min_idle_conn = 5 min_idle_conn = 5
[asynq] [asynq]
# Exclusively used by the asynq tasker # Exclusively used by the asynq tasker
# Ideally use DB 0 # Ideally use DB 0
dsn = "" dsn = ""
task_retention_hrs = 24 task_retention_hrs = 24
worker_count = 15 worker_count = 15
[jetstream] [jetstream]
endpoint = "" endpoint = ""
persist_duration_hrs = 48
dedup_duration_hrs = 6

View File

@ -13,32 +13,32 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
# postgres: postgres:
# image: postgres:14-alpine image: postgres:14-alpine
# restart: unless-stopped restart: unless-stopped
# user: postgres user: postgres
# environment: environment:
# - POSTGRES_PASSWORD=postgres - POSTGRES_PASSWORD=postgres
# - POSTGRES_USER=postgres - POSTGRES_USER=postgres
# volumes: volumes:
# - cic-custodial-pg:/var/lib/postgresql/data - cic-custodial-pg:/var/lib/postgresql/data
# - ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql - ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
# ports: ports:
# - "127.0.0.1:5433:5432" - "127.0.0.1:5432:5432"
# healthcheck: healthcheck:
# test: ["CMD-SHELL", "pg_isready"] test: ["CMD-SHELL", "pg_isready"]
# interval: 10s interval: 10s
# timeout: 5s timeout: 5s
# retries: 5 retries: 5
# nats: nats:
# image: nats:2.9 image: nats:2.9
# restart: unless-stopped restart: unless-stopped
# command: "-js -sd /nats/data" command: "-js -sd /nats/data"
# volumes: volumes:
# - cic-custodial-nats:/nats/data - cic-custodial-nats:/nats/data
# ports: ports:
# - "127.0.0.1:4223:4222" - "127.0.0.1:4222:4222"
# - "127.0.0.1:8223:8222" - "127.0.0.1:8222:8222"
asynqmon: asynqmon:
image: hibiken/asynqmon image: hibiken/asynqmon
restart: unless-stopped restart: unless-stopped
@ -49,16 +49,16 @@ services:
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy
# cic-chain-events: cic-chain-events:
# image: ghcr.io/grassrootseconomics/cic-chain-events/cic-chain-events:latest image: ghcr.io/grassrootseconomics/cic-chain-events/cic-chain-events:latest
# restart: unless-stopped restart: unless-stopped
# env_file: env_file:
# - events.env - events.env
# ports: ports:
# - '127.0.0.1:5001:5000' - '127.0.0.1:5001:5000'
# depends_on: depends_on:
# postgres: postgres:
# condition: service_healthy condition: service_healthy
volumes: volumes:
cic-custodial-pg: cic-custodial-pg:
driver: local driver: local