-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1.05 KB
/
docker-compose.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
41
42
43
44
45
version: "3"
services:
bitcoind:
image: ruimarinho/bitcoin-core:latest
restart: always
entrypoint: bitcoind -txindex=1 -signet -rpcuser=$RPC_USER -rpcpassword=$RPC_PASSWORD -rpcbind=0.0.0.0:38332 -rpcallowip=255.255.255.255/0
container_name: bitcoind
environment:
- RPC_USER=${RPC_USER}
- RPC_PASSWORD=${RPC_PASSWORD}
volumes:
- ./bitcoind/:$HOME/.bitcoin
ports:
- 38332:38332
networks:
- local-network
brige:
build:
context: .
dockerfile: Dockerfile
restart: always
entrypoint: ./bridge
container_name: bridge
environment:
- BITCOIN_CORE_RPC_URL=bitcoind:38332
- BITCOIN_CORE_RPC_USER=${RPC_USER}
- BITCOIN_CORE_RPC_PASSWORD=${RPC_PASSWORD}
- P2P_PORT=${P2P_PORT}
- API_PORT=${API_PORT}
- DATA_DIR=$HOME/.bridge
volumes:
- ./bridge/:$HOME/.bridge
ports:
- $P2P_PORT:$P2P_PORT
- $API_PORT:$API_PORT
networks:
- local-network
depends_on:
- bitcoind
networks:
local-network:
driver: bridge