subql icon indicating copy to clipboard operation
subql copied to clipboard

Update docker compose with more flags

Open stwiname opened this issue 1 year ago • 3 comments

We need to update the docker compose in starters

Currently we have:

    command:
      - -f=/app
      - --disable-historical=true

But we should offer more defaults and comment extra options. It would be good to have defaults similar to what the hosted service provides by default

Quick exmaple:

    command:
      - -f=/app
      - --workers=4
      - --batch-size=30
      - # --unsafe=true #use this if you need to make network requests
      - --unfinalized-blocks=true

stwiname avatar Jul 30 '23 21:07 stwiname

  • https://github.com/subquery/subql-starter/pull/89
  • https://github.com/subquery/ethereum-subql-starter/pull/14
  • https://github.com/subquery/cosmos-subql-starter/pull/34
  • https://github.com/subquery/near-subql-starter/pull/5
  • https://github.com/subquery/algorand-subql-starter/pull/5

jiqiang90 avatar Aug 04 '23 03:08 jiqiang90

I think this comment was missed https://github.com/subquery/subql-starter/pull/89#discussion_r1285272425

stwiname avatar Aug 16 '23 23:08 stwiname

Made the following commits due to text that caused this on docker-compose

WARN[0000] The "SUB_COMMAND" variable is not set. Defaulting to a blank string. 
validating /Users/james/Development/subquery/subql-starter/Polkadot/Polkadot-starter/docker-compose.yml: services.subquery-node.command.5 must be a string
error Command failed with exit code 15.

https://github.com/subquery/subql-starter/commit/90a75bcb0288e4740be2fe60a09a4f5fbb795115 https://github.com/subquery/ethereum-subql-starter/commit/dd9bcce1d1014cc5b5b875714d0b94e0ba60f45e https://github.com/subquery/cosmos-subql-starter/commit/6119b2f4d8a282753ae0281f69261f177d04f83c https://github.com/subquery/near-subql-starter/commit/b6b069aa0b6daaf8bafc33dad250768c35ed0e1f https://github.com/subquery/algorand-subql-starter/commit/425b24a7a5cb92e84aa1a8172ae8b81ff189730d

jamesbayly avatar Aug 17 '23 09:08 jamesbayly