Skip to content

Commit

Permalink
feat: add docker-compose
Browse files Browse the repository at this point in the history
Co-authored-by: Davi Petris <[email protected]>
  • Loading branch information
steinerkelvin and DaviPtrs committed Jan 10, 2025
1 parent ce98d83 commit 4c52427
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
33 changes: 33 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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",
]

0 comments on commit 4c52427

Please sign in to comment.