60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
services:
|
|
# 1. BITCOIN FULL NODE (bitcoind)
|
|
bitcoind:
|
|
image: lncm/bitcoind:v27.0
|
|
container_name: bitcoind-node
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./bitcoin-data:/root/.bitcoin
|
|
ports:
|
|
- "8333:8333" # P2P Netzwerk
|
|
command:
|
|
- -server=1
|
|
- -txindex=0
|
|
- -prune=5000 # Beschränkt den Speicher auf ca. 17 GB
|
|
- -rpcbind=0.0.0.0
|
|
- -rpcallowip=0.0.0.0/0
|
|
- -rpcuser=pooluser
|
|
- -rpcpassword=StrengGeheimesPasswort123!
|
|
- -zmqpubrawblock=tcp://0.0.0.0:28332
|
|
networks:
|
|
- mining-net
|
|
|
|
# 2. PUBLIC-POOL STRATUM & API BACKEND
|
|
public-pool:
|
|
image: benedikteth/public-pool:latest
|
|
container_name: public-pool-backend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- bitcoind
|
|
environment:
|
|
- BITCOIN_RPC_URL=http://bitcoind:8332
|
|
- BITCOIN_RPC_USER=pooluser
|
|
- BITCOIN_RPC_PASSWORD=StrengGeheimesPasswort123!
|
|
- BITCOIN_RPC_TIMEOUT=10000
|
|
- BITCOIN_ZMQ_HOST=tcp://bitcoind:28332
|
|
- API_PORT=3334
|
|
- STRATUM_PORT=21496
|
|
- NETWORK=mainnet
|
|
ports:
|
|
- "21496:21496" # Stratum V1 Port für Miner
|
|
networks:
|
|
- mining-net
|
|
|
|
# 3. CUSTOM PHP-DASHBOARD (by Tessmann)
|
|
dashboard-web:
|
|
image: tessmann/bitcoin-solo-pool:latest
|
|
container_name: mining-dashboard
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./dashboard-data:/var/www/html/posts
|
|
environment:
|
|
- TZ=Europe/Berlin
|
|
networks:
|
|
- mining-net
|
|
|
|
networks:
|
|
mining-net:
|
|
driver: bridge |