-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
86 lines (85 loc) · 2 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
tor:
image: tor:$TOR_VERSION
build:
context: ./tor
args:
- TOR_VERSION=$TOR_VERSION
- TOR_USER_ID=$TOR_USER_ID
- GROUP_ID=$SHARED_GID
volumes:
- $TOR_DATA:/home/tor
restart: on-failure
networks:
default:
ipv4_address: 172.18.0.2
bitcoind:
image: bitcoind:$BITCOIN_VERSION
depends_on:
- tor
build:
context: ./bitcoind
args:
- BITCOIN_VERSION=$BITCOIN_VERSION
- BITCOIN_USER_ID=$BITCOIN_USER_ID
- GROUP_ID=$SHARED_GID
volumes:
- $BITCOIN_DATA:/home/bitcoin/.bitcoin
restart: unless-stopped
networks:
default:
ipv4_address: 172.18.0.3
electrs:
image: electrs:$ELECTRS_VERSION
depends_on:
- bitcoind
build:
context: ./electrs
args:
- ELECTRS_VERSION=$ELECTRS_VERSION
- ELECTRS_USER_ID=$ELECTRS_USER_ID
- GROUP_ID=$SHARED_GID
volumes:
- $BITCOIN_DATA:/home/electrs/.bitcoin
- $ELECTRS_DATA:/home/electrs/.electrs
restart: on-failure
networks:
default:
ipv4_address: 172.18.0.4
btcrpcexplorer:
image: btcrpcexplorer:$BTC_RPC_EXPLORER_VERSION
depends_on:
- bitcoind
- electrs
build:
context: ./btcrpcexplorer
args:
- BTC_RPC_EXPLORER_VERSION=$BTC_RPC_EXPLORER_VERSION
- BTC_RPC_EXPLORER_USER_ID=$BTC_RPC_EXPLORER_USER_ID
- GROUP_ID=$SHARED_GID
volumes:
- $BTC_RPC_EXPLORER_DATA:/home/btcrpcexplorer/.config
restart: on-failure
networks:
default:
ipv4_address: 172.18.0.5
nginx:
image: nginx:alpine-slim
depends_on:
- btcrpcexplorer
- electrs
ports:
- $BTC_RPC_EXPLORER_HTTPS_PORT:3003
- $ELECTRS_SSL_PORT:50002
volumes:
- $NGINX_DATA:/etc/nginx
restart: on-failure
networks:
default:
ipv4_address: 172.18.0.6
networks:
default:
ipam:
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1