forked from NGUtech/bitcoin-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.bitcoin.yml
40 lines (38 loc) · 1.09 KB
/
docker-compose.bitcoin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "2.4"
volumes:
bitcoin_data:
bitcoin_shared:
services:
bitcoin:
container_name: ${COMPOSE_PROJECT_NAME}_bitcoin
image: bitcoinstack/bitcoin:0.20.1-alpine
restart: unless-stopped
command: [
"-regtest=1",
"-upnp=0",
"-server=1",
"-txindex=1",
"-onlynet=ipv4",
"-dnsseed=0",
"-dbcache=10",
"-port=${BITCOIN_PORT}",
"-rpcport=${BITCOIN_RPC_PORT}",
"-rpcuser=${BITCOIN_RPC_USER}",
"-rpcpassword=${BITCOIN_RPC_PASSWORD}",
"-rpcallowip=0.0.0.0/0",
"-rpcbind=127.0.0.1",
"-rpcbind=${BITCOIN_HOST}",
"-zmqpubrawtx=tcp://0.0.0.0:${BITCOIN_ZMQ_TX_PORT}",
"-zmqpubhashtx=tcp://0.0.0.0:${BITCOIN_ZMQ_TX_PORT}",
"-zmqpubrawblock=tcp://0.0.0.0:${BITCOIN_ZMQ_BLOCK_PORT}",
"-zmqpubhashblock=tcp://0.0.0.0:${BITCOIN_ZMQ_BLOCK_PORT}"
]
networks:
bitcoinstacknet:
aliases:
- ${BITCOIN_HOST}
ports:
- "127.0.0.1:${BITCOIN_RPC_PORT}:${BITCOIN_RPC_PORT}"
volumes:
- bitcoin_data:/home/bitcoin/.bitcoin
- bitcoin_shared:/opt/bitcoin/bin