Skip to content

Commit

Permalink
feat: updated thor image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pierobassa committed Oct 27, 2023
1 parent 47c7468 commit c16b890
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
version: "3"
version: "3.9"

services:
thor-solo:
image: vechain/thor:v2.0.0
image: vechain/thor:v2.1.0
container_name: thor-solo
# Install curl for our healthcheck, then start thor solo
# We use on-demand mode so that thor will create a new block when there is pending transaction
entrypoint:
[
"/bin/sh",
"-c",
"apk update && apk upgrade && apk add curl && thor solo --on-demand --data-dir /data/thor --api-addr 0.0.0.0:8669 --api-cors '*' --api-backtrace-limit -1 --verbosity 4",
]
ports:
- "8669:8669"
- "11235:11235"
- 8669:8669
command:
- solo
- --on-demand # create new block when there is pending transaction
- --api-addr=0.0.0.0:8669 # Enable remote connections
- --api-cors=* # comma separated list of domains to accept cross origin requests to API
- --gas-limit=10000000000000 #
- --api-call-gas-limit=10000000000000 # limit contract call gas
- --txpool-limit=100000000000 # limit txpool size
- --txpool-limit-per-account=256 # limit txpool size per account
- --cache=1024 # megabytes of ram allocated to trie nodes cache
healthcheck:
test: curl --fail 0.0.0.0:8669/blocks/0 || exit 1 # Check if thor is running by checking if we can get the genesis block
interval: "2s"
retries: 30
# We run the health check using standard UNIX tools so we don't have to
# install additional dependencies in the container.
test: wget -O- http://localhost:8669/blocks/0
interval: 5s
timeout: 10s
retries: 10

0 comments on commit c16b890

Please sign in to comment.