Last active
November 10, 2025 13:24
-
-
Save ljmocic/4510e202dbffaa21bd409f9ab05a4ffd to your computer and use it in GitHub Desktop.
midgard-setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| midgard: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| image: midgard | |
| restart: always | |
| ports: | |
| - 8080:8080 | |
| links: | |
| - pg | |
| depends_on: | |
| pg: | |
| condition: service_healthy | |
| volumes: | |
| - ./config/local.json:/config.json | |
| - /mnt/data/midgard/.midgard/blockstore:/blockstore | |
| - /mnt/data/midgard/.midgard/hashes:/resources/hashes | |
| extra_hosts: | |
| - "host.docker.internal:host-gateway" | |
| pg: | |
| image: timescale/timescaledb:2.13.0-pg15 | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U midgard -d midgard"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 6 | |
| shm_size: 2g | |
| command: postgres -c plan_cache_mode=force_custom_plan -c work_mem=256MB -c maintenance_io_concurrency=256 | |
| cpus: 4 | |
| cpu_shares: 2048 | |
| environment: | |
| - POSTGRES_DB=midgard | |
| - POSTGRES_USER=midgard | |
| - POSTGRES_PASSWORD=password | |
| ports: | |
| - 127.0.0.1:5432:5432 | |
| volumes: | |
| - /mnt/data/pg/.pg:/var/lib/postgresql/data | |
| volumes: | |
| pg: | |
| blockstore: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "listen_port": 8080, | |
| "max_block_age": "60s", | |
| "thorchain": { | |
| "tendermint_url": "http://thornode:27147/websocket", | |
| "thornode_url": "http://thornode:1317/thorchain", | |
| "last_chain_backoff": "10s", | |
| "fetch_batch_size": 100, | |
| "parallelism": 10, | |
| "read_timeout": "60s", | |
| "fork_infos": [ | |
| { | |
| "chain_id": "thorchain", | |
| "earliest_block_hash": "7D37DEF6E1BE23C912092069325C4A51E66B9EF7DDBDE004FF730CFABC0307B1", | |
| "earliest_block_height": 1, | |
| "hard_fork_height": 4786559 | |
| }, | |
| { | |
| "chain_id": "thorchain-mainnet-v1", | |
| "parent_chain_id": "thorchain", | |
| "earliest_block_hash": "9B86543A5CF5E26E3CE93C8349B2EABE5E238DFFC9EBE8EC6207FE7178FF27AC", | |
| "earliest_block_height": 4786560, | |
| "hard_fork_height": 17562000 | |
| }, | |
| { | |
| "chain_id": "thorchain-1", | |
| "parent_chain_id": "thorchain-mainnet-v1", | |
| "earliest_block_hash": "0B3C8F9E3EA7E9B1C10CAC5217ED771E0540671EFB9C5315BF01167266BCBEDF", | |
| "earliest_block_height": 17562001 | |
| } | |
| ] | |
| }, | |
| "timescale": { | |
| "host": "pg", | |
| "port": 5432, | |
| "user_name": "midgard", | |
| "password": "password", | |
| "database": "midgard", | |
| "sslmode": "disable", | |
| "commit_batch_size": 50, | |
| "max_open_conns": 120 | |
| }, | |
| "websockets": { | |
| "enable": false, | |
| "connection_limit": 100 | |
| }, | |
| "usdpools": [ | |
| "BNB.BUSD-BD1", | |
| "BNB.BUSD-BAF", | |
| "BNB.USDT-DC8", | |
| "ETH.USDT-0X62E273709DA575835C7F6AEF4A31140CA5B1D190", | |
| "ETH.USDT-0XDAC17F958D2EE523A2206206994597C13D831EC7", | |
| "AVAX.USDC-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E", | |
| "ETH.USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48" | |
| ], | |
| "blockstore": { | |
| "local": "/blockstore", | |
| "remote": "https://snapshots.ninerealms.com/snapshots/midgard-blockstore/" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment