Feat/add networks (#1303)

* No commit suggestions generated

* No commit suggestions generated

* No commit suggestions generated
This commit is contained in:
Prad Nukala
2025-10-12 11:23:20 -04:00
committed by GitHub
parent 40eadc995e
commit ebfa2b062a
97 changed files with 3979 additions and 16119 deletions
+17
View File
@@ -0,0 +1,17 @@
CHAIN_ID=sonrtest_1-1
DENOM=usnr
KEYRING=test
KEYALGO=eth_secp256k1
BLOCK_TIME=5s
VOTING_PERIOD=30s
EXPEDITED_VOTING_PERIOD=15s
MAX_GAS=100000000
MIN_COMMISSION_RATE=0.050000000000000000
NARUTO_MNEMONIC="decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
SENKU_MNEMONIC="wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise"
YAEGER_MNEMONIC="quality vacuum heart guard buzz spike sight swarm shove special gym robust assume sudden deposit grid alcohol choice devote leader tilt noodle tide penalty"
FAUCET_MNEMONIC="notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius"
BASE_ALLOCATION=100000000000000000000000000usnr
STAKE_AMOUNT=30000000000000000000000usnr
FAUCET_ALLOCATION=250000000000000000000000000000usnr
DOCKER_IMAGE=onsonr/snrd:latest
+106
View File
@@ -0,0 +1,106 @@
name: sonr-core
services:
ipfs:
container_name: ipfs
image: ipfs/kubo:release
ports:
- "127.0.0.1:5001:5001"
- "127.0.0.1:8080:8080"
- "127.0.0.1:4001:4001"
volumes:
- ${HOME}/.ipfs:/data/ipfs
networks:
- sonr-network
cluster:
container_name: cluster
image: ipfs/ipfs-cluster:latest
depends_on:
- ipfs
environment:
CLUSTER_PEERNAME: cluster
CLUSTER_SECRET: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
CLUSTER_IPFSHTTP_NODEMULTIADDRESS: /dns4/ipfs/tcp/5001
CLUSTER_CRDT_TRUSTEDPEERS: "*"
CLUSTER_MONITORPINGINTERVAL: 2s
ports:
- "127.0.0.1:9094:9094"
- "127.0.0.1:9095:9095"
volumes:
- ${HOME}/.ipfs-cluster:/data/ipfs-cluster
networks:
- sonr-network
caddy:
container_name: caddy
image: caddy:2-alpine
restart: unless-stopped
depends_on:
snrd:
condition: service_healthy
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
environment:
CADDY_DOMAIN: ${CADDY_DOMAIN:-localhost}
networks:
- sonr-network
snrd:
container_name: snrd
image: onsonr/snrd:latest
build:
context: .
dockerfile: cmd/snrd/Dockerfile
restart: unless-stopped
depends_on:
- ipfs
command: ["/usr/bin/devnet"]
environment:
CHAIN_ID: ${CHAIN_ID:-sonrtest_1-1}
MONIKER: ${MONIKER:-sonr-dev-node}
DENOM: ${DENOM:-usnr}
BLOCK_TIME: ${BLOCK_TIME:-1s}
CLEAN: ${CLEAN:-true}
KEYRING: ${KEYRING:-test}
HOME_DIR: /home/snrd/.snrd
KEY: acc0
KEY2: acc1
KEYALGO: eth_secp256k1
LOG_LEVEL: ${LOG_LEVEL:-debug}
TRACE: ${TRACE:-true}
SKIP_INSTALL: "true"
ports:
- "26657:26657"
- "1317:1317"
- "9090:9090"
- "9091:9091"
- "8545:8545"
- "8546:8546"
- "26656:26656"
- "6060:6060"
volumes:
- ${HOME}/.sonr:/root/.sonr
healthcheck:
test: ["CMD", "snrd", "status", "--home", "/home/snrd/.snrd"]
interval: 10s
timeout: 5s
retries: 5
start_period: 60s
networks:
- sonr-network
networks:
sonr-network:
driver: bridge
name: sonr-network
volumes:
caddy-config:
caddy-data: