mirror of
https://github.com/aljazceru/mutiny-net.git
synced 2025-12-16 21:44:21 +01:00
Add docker-compose
This commit is contained in:
10
.env.sample
Normal file
10
.env.sample
Normal file
@@ -0,0 +1,10 @@
|
||||
PRIVKEY="my_priv_key"
|
||||
SIGNETCHALLENGE="my_signet_challenge"
|
||||
EXTERNAL_IP="127.0.0.1"
|
||||
|
||||
NBITS="1e0377ae" # min difficulty
|
||||
BLOCKPRODUCTIONDELAY=30
|
||||
|
||||
UACOMMENT="MutinyNet"
|
||||
|
||||
RPCPASSWORD="my_rpc_password"
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.env
|
||||
75
docker-compose.yml
Normal file
75
docker-compose.yml
Normal file
@@ -0,0 +1,75 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
bitcoind:
|
||||
container_name: "bitcoind"
|
||||
image: bitcoin-signet
|
||||
user: "0:1000"
|
||||
restart: always
|
||||
stop_grace_period: 1m
|
||||
volumes:
|
||||
- ~/volumes/.bitcoin:/root/.bitcoin
|
||||
environment:
|
||||
UACOMMENT: $UACOMMENT
|
||||
BLOCKPRODUCTIONDELAY: $BLOCKPRODUCTIONDELAY
|
||||
NBITS: $NBITS
|
||||
RPCPASSWORD: $RPCPASSWORD
|
||||
PRIVKEY: $PRIVKEY
|
||||
SIGNETCHALLENGE: $SIGNETCHALLENGE
|
||||
EXTERNAL_IP: $EXTERNAL_IP
|
||||
ports:
|
||||
- "28332:28332"
|
||||
- "28333:28333"
|
||||
- "28334:28334"
|
||||
- "38332:38332"
|
||||
- "38333:38333"
|
||||
- "38334:38334"
|
||||
web:
|
||||
container_name: "mempool_frontend"
|
||||
environment:
|
||||
FRONTEND_HTTP_PORT: "8080"
|
||||
BACKEND_MAINNET_HTTP_HOST: "api"
|
||||
image: mempool/frontend:latest
|
||||
user: "0:1000"
|
||||
restart: always
|
||||
stop_grace_period: 1m
|
||||
command: "./wait-for db:3306 --timeout=720 -- nginx -g 'daemon off;'"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
api:
|
||||
container_name: "mempool_backend"
|
||||
environment:
|
||||
MEMPOOL_BACKEND: "none" # TODO add a backend
|
||||
CORE_RPC_HOST: "bitcoind"
|
||||
CORE_RPC_PORT: "38332"
|
||||
CORE_RPC_USERNAME: "bitcoin"
|
||||
CORE_RPC_PASSWORD: $RPCPASSWORD
|
||||
CORE_RPC_TIMEOUT: "60000"
|
||||
DATABASE_ENABLED: "true"
|
||||
DATABASE_HOST: "db"
|
||||
DATABASE_DATABASE: "mempool"
|
||||
DATABASE_USERNAME: "mempool"
|
||||
DATABASE_PASSWORD: "mempool"
|
||||
STATISTICS_ENABLED: "true"
|
||||
image: mempool/backend:latest
|
||||
user: "0:1000"
|
||||
restart: always
|
||||
stop_grace_period: 1m
|
||||
command: "./wait-for-it.sh db:3306 --timeout=720 --strict -- ./start.sh"
|
||||
ports:
|
||||
- "8889:8889"
|
||||
volumes:
|
||||
- ~/volumes/mempool:/backend/cache
|
||||
db:
|
||||
container_name: "mempool_db"
|
||||
environment:
|
||||
MYSQL_DATABASE: "mempool"
|
||||
MYSQL_USER: "mempool"
|
||||
MYSQL_PASSWORD: "mempool"
|
||||
MYSQL_ROOT_PASSWORD: "admin"
|
||||
image: mariadb:10.5.8
|
||||
user: "0:1000"
|
||||
restart: always
|
||||
stop_grace_period: 1m
|
||||
volumes:
|
||||
- ~/volumes/mysql/data:/var/lib/mysql
|
||||
Reference in New Issue
Block a user