Skip to content

Commit

Permalink
deploy: 5d1ae6d
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Sep 30, 2023
1 parent 98dfa38 commit 7454934
Showing 1 changed file with 31 additions and 56 deletions.
87 changes: 31 additions & 56 deletions docker/BTC/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
version: "2.4"

# volumes:
# database:
# name: btc-db
# blockchain:
# name: btc-data
# tipbot-blockchain:
# name: btc-tipbot-data
# tipbot-database:
# name: btc-tipbot-db

# volumes:
# prometheus-data:
# driver: local
Expand All @@ -22,8 +12,8 @@ services:
indexer:
container_name: btc-indexer
image: blockcore/indexer:0.2.50
mem_limit: 1024m
cpus: 0.200
mem_limit: 8192m
cpus: 2.000
environment:
VIRTUAL_HOST: btc.indexer.blockcore.net
VIRTUAL_PORT: 9910
Expand All @@ -45,30 +35,46 @@ services:

chain:
container_name: btc-chain
image: blockcore/node-multi:1.1.53
mem_limit: 10240m
cpus: 0.200
user: 1000:1000
image: lncm/bitcoind:v25.0
mem_limit: 8192m
cpus: 2.000
healthcheck:
test: curl --fail http://localhost:37220/api/Node/status || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
command: ["--chain=BTC", "-server=1", "-txindex=1", "-dbtype=rocksdb", "-rpcallowip=10.202.0.0/8", "-rpcallowip=10.201.0.0/8", "-rpcallowip=192.168.0.0/8", "-rpcallowip=172.0.0.0/8", "-rpcbind=0.0.0.0", "-apiuri=http://0.0.0.0:37220", "-rpcuser=rpcuser", "-rpcpassword=rpcpassword", "-assumedvalid=00000000000000000004bac129769598d1fad2b42859e625729661a32b9c3e71"]
restart: unless-stopped
stop_grace_period: 15m
command:
[
"-server=1",
"-txindex=1",
"-rpcallowip=10.202.0.0/8",
"-rpcallowip=10.201.0.0/8",
"-rpcallowip=192.168.0.0/8",
"-rpcallowip=172.0.0.0/8",
"-rpcbind=0.0.0.0",
"-rpcuser=rpcuser",
"-rpcpassword=rpcpassword",
"-assumedvalid=00000000000000000004bac129769598d1fad2b42859e625729661a32b9c3e71",
]
restart: on-failure
stop_grace_period: 15m30s
volumes:
- /mnt/storage/blockcore/btc/node:/root/.blockcore
- /mnt/data/.bitcoin:/data/.bitcoin
ports:
- 8333:8333 # Make this a public node.
- "8333:8333"
- "8332:8332"
- "28332:28332"
- "28333:28333"
networks:
- btcnetwork

mongo:
container_name: btc-mongo
image: mongo:5.0.12
mem_limit: 2048m
cpus: 0.200
mem_limit: 8192m
cpus: 2.000

healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet
Expand All @@ -80,46 +86,15 @@ services:
restart: unless-stopped
stop_grace_period: 5m
volumes:
- /mnt/storage/blockcore/btc/db:/data/db
- /mnt/storage/blockcore/btc/db:/data/configdb
- /mnt/data/blockcore/btc:/data/db
- /mnt/data/blockcore/btc:/data/configdb
networks:
- btcnetwork

networks:
btcnetwork:
external: false
name: btcnetwork
proxy:
external: true
name: proxy

# tipbot:
# container_name: strat-tipbot
# image: blockcore/tipbot:0.1.8
# env_file:
# - tipbot.env
# command: ["--chain=STRAT"]
# restart: unless-stopped
# depends_on:
# - tipbot-database
# - tipbot-chain

# tipbot-chain:
# container_name: strat-tipbot-chain
# image: blockcore/node-strat:1.0.29
# command: ["-server=1", "-txindex=0", "-rpcallowip=172.0.0.0/8", "-rpcbind=0.0.0.0", "-apiuri=http://0.0.0.0:37221", "-rpcuser=rpcuser", "-rpcpassword=rpcpassword"]
# restart: unless-stopped
# stop_grace_period: 15m
# volumes:
# - tipbot-blockchain:/root/.blockcore

# tipbot-database:
# container_name: strat-tipbot-db
# image: mcr.microsoft.com/mssql/server:2019-latest
# env_file:
# - tipbot.env
# environment:
# ACCEPT_EULA: "Y"
# restart: unless-stopped
# volumes:
# - tipbot-database:/var/opt/mssql

0 comments on commit 7454934

Please sign in to comment.