From 4c5242771cfd4976b64394ea43451022e398fb63 Mon Sep 17 00:00:00 2001 From: Kelvin Steiner Date: Thu, 9 Jan 2025 22:33:01 -0300 Subject: [PATCH] feat: add docker-compose Co-authored-by: Davi Petris --- README.md | 7 ++++++- docker-compose.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 1b5a5c1..d1cb7b7 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,12 @@ cargo run --bin torus-node --release -- --chain data/testnet/spec.json ## Docker -TODO +```sh +mkdir -p torus-node +cd torus-node +wget https://raw.githubusercontent.com/renlabs-dev/torus-substrate/refs/heads/main/docker-compose.yml -O docker-compose.yml +docker compose up -d +``` ## Development diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f994a24 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,33 @@ +services: + commune-node: + container_name: torus-node + image: ghcr.io/renlabs-dev/torus-substrate:f6efa2e + volumes: + - ./docker/volumes/node-data:/node-data + ports: + - 30333:30333 # P2P + - 9944:9944 # RPC + restart: always + entrypoint: ["torus-node"] + + command: [ + "--base-path", + "/node-data", + "--chain", + "mainnet", + "--rpc-external", + "--rpc-cors=all", + "--rpc-max-response-size", + "100", + "--rpc-max-connections", + "5000", + "--port", + "30333", + "--rpc-port", + "9944", + "--telemetry-url", + "ws://telemetry.torus.network:8001/submit 0", + "--sync=warp", + # "--sync=full", + # "--pruning=archive", + ]