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
[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
endpoint = ""

View File

@ -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