From e67a42ede38119311a29c7ef978fa2150137922b Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Thu, 6 Apr 2023 06:12:37 +0000 Subject: [PATCH] fix: config.toml and dev docker-compose --- config.toml | 17 ++++------ dev/docker-compose.yaml | 72 ++++++++++++++++++++--------------------- 2 files changed, 43 insertions(+), 46 deletions(-) diff --git a/config.toml b/config.toml index 7a7ce54..c1d16e8 100644 --- a/config.toml +++ b/config.toml @@ -5,14 +5,13 @@ address = ":5000" metrics = true [chain] -rpc_endpoint = "" -testnet = true -devnet = false +rpc_endpoint = "" +testnet = true registry_address = "" [system] private_key = "" -public_key = "" +public_key = "" [postgres] dsn = "" @@ -20,17 +19,15 @@ dsn = "" [redis] # Used for locks and the Noncestore # Ideally use DB 1 -dsn = "" +dsn = "" min_idle_conn = 5 [asynq] # Exclusively used by the asynq tasker # Ideally use DB 0 -dsn = "" +dsn = "" task_retention_hrs = 24 -worker_count = 15 +worker_count = 15 [jetstream] -endpoint = "" -persist_duration_hrs = 48 -dedup_duration_hrs = 6 \ No newline at end of file +endpoint = "" \ No newline at end of file diff --git a/dev/docker-compose.yaml b/dev/docker-compose.yaml index ce86eee..7c3209f 100644 --- a/dev/docker-compose.yaml +++ b/dev/docker-compose.yaml @@ -13,32 +13,32 @@ services: interval: 10s timeout: 5s retries: 5 - # postgres: - # image: postgres:14-alpine - # restart: unless-stopped - # user: postgres - # environment: - # - POSTGRES_PASSWORD=postgres - # - POSTGRES_USER=postgres - # volumes: - # - cic-custodial-pg:/var/lib/postgresql/data - # - ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql - # ports: - # - "127.0.0.1:5433:5432" - # healthcheck: - # test: ["CMD-SHELL", "pg_isready"] - # interval: 10s - # timeout: 5s - # retries: 5 - # nats: - # image: nats:2.9 - # restart: unless-stopped - # command: "-js -sd /nats/data" - # volumes: - # - cic-custodial-nats:/nats/data - # ports: - # - "127.0.0.1:4223:4222" - # - "127.0.0.1:8223:8222" + postgres: + image: postgres:14-alpine + restart: unless-stopped + user: postgres + environment: + - POSTGRES_PASSWORD=postgres + - POSTGRES_USER=postgres + volumes: + - cic-custodial-pg:/var/lib/postgresql/data + - ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql + ports: + - "127.0.0.1:5432:5432" + healthcheck: + test: ["CMD-SHELL", "pg_isready"] + interval: 10s + timeout: 5s + retries: 5 + nats: + image: nats:2.9 + restart: unless-stopped + command: "-js -sd /nats/data" + volumes: + - cic-custodial-nats:/nats/data + ports: + - "127.0.0.1:4222:4222" + - "127.0.0.1:8222:8222" asynqmon: image: hibiken/asynqmon restart: unless-stopped @@ -49,16 +49,16 @@ services: depends_on: redis: condition: service_healthy - # cic-chain-events: - # image: ghcr.io/grassrootseconomics/cic-chain-events/cic-chain-events:latest - # restart: unless-stopped - # env_file: - # - events.env - # ports: - # - '127.0.0.1:5001:5000' - # depends_on: - # postgres: - # condition: service_healthy + cic-chain-events: + image: ghcr.io/grassrootseconomics/cic-chain-events/cic-chain-events:latest + restart: unless-stopped + env_file: + - events.env + ports: + - '127.0.0.1:5001:5000' + depends_on: + postgres: + condition: service_healthy volumes: cic-custodial-pg: driver: local