Skip to content

Commit

Permalink
feat(docker): compose
Browse files Browse the repository at this point in the history
  • Loading branch information
pierobassa committed Jun 11, 2024
1 parent 79cd8a9 commit 6efabce
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
services:
thor-solo:
image: vechain/thor:v2.1.2
hostname: thor-solo
container_name: thor-solo
user: root
environment:
- DOCKER=1
entrypoint:
[
"/bin/sh",
"-c",
"apk update && apk upgrade && apk add curl && thor solo --on-demand --persist --data-dir /data/thor --api-addr 0.0.0.0:8669 --api-cors '*' --verbosity 3",
]
ports:
- "8669:8669"
healthcheck:
test: curl --fail 0.0.0.0:8669/blocks/0 || exit 1
interval: "2s"
retries: 30
volumes:
- thor-data:/data/thor
networks:
- vechain-thor

# insight:
# image: thor-insights
# hostname: insight
# container_name: insight
# environment:
# - VUE_APP_SOLO_URL=http://localhost:8669
# ports:
# - "8181:80"
# networks:
# - vechain-thor
networks:
vechain-thor:
driver: bridge
name: vechain-thor
volumes:
thor-data:
driver: local
name: thor-data

0 comments on commit 6efabce

Please sign in to comment.