-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
106 lines (105 loc) · 2.39 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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
i2p:
image: i2p:$I2P_VERSION
profiles:
- disabled
build:
context: ./i2p
args:
- I2P_VERSION=$I2P_VERSION
- I2P_USER_ID=$I2P_USER_ID
- GROUP_ID=$SHARED_GID
volumes:
- $I2P_DATA:/i2p/.i2p
environment:
- EXT_PORT:7656
ports:
- 7657:7657
restart: on-failure
networks:
default:
ipv4_address: 172.18.0.3
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.4
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.5
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.6
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.7
networks:
default:
ipam:
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1