-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.forknet.yml
More file actions
100 lines (86 loc) · 2.44 KB
/
docker-compose.forknet.yml
File metadata and controls
100 lines (86 loc) · 2.44 KB
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
name: forknet-server
services:
enforcer:
profiles:
- forknet
secrets:
- source: bitcoind-forknet-cookie
target: /daemon-dir/.cookie
mempool-db:
profiles:
- forknet
mempool-web:
profiles:
- forknet
mempool-api:
profiles:
- forknet
secrets:
- source: bitcoind-forknet-cookie
target: /daemon-dir/.cookie
environment:
MEMPOOL_NETWORK: mainnet
CORE_RPC_HOST: host.docker.internal
CORE_RPC_PORT: 18301
electrs:
profiles:
- forknet
volumes:
# Mount this into something different from the baseline
# Compose file, otherwise we'll overwrite our own mount
- electrs-forknet-data:/forknet
secrets:
- source: bitcoind-forknet-cookie
target: /daemon-dir/.cookie
command:
- -vv # pretty verbose logging
- --timestamp
- --daemon-rpc-addr=host.docker.internal:18301
- --jsonrpc-import
- --db-dir=/forknet/db
- --daemon-dir=/daemon-dir
- --network=mainnet
- --http-addr=0.0.0.0:3000
- --electrum-rpc-addr=0.0.0.0:50001
- --electrum-txs-limit=30000
- --cors=*
faucet-backend:
profiles:
- forknet
secrets:
- source: bitcoind-forknet-cookie
target: /cookie
command:
- faucetd
- --bitcoincore.address=host.docker.internal:18301
- --bitcoincore.cookie=/cookie
- --enforcer.url=http://enforcer:50051
- --listen=0.0.0.0:8082
faucet-frontend:
profiles:
- forknet
environment:
API_BASE_URL: http://faucet-backend:8082
METADATA_BASE_URL: https://node.forknet.drivechain.info
busybox:
volumes:
- electrs-forknet-data:/electrs-forknet-data
# Paths to secrets refer to the (remote) host machine.
secrets:
# IMPORTANT: this needs to be a file WITHOUT a trailing newline
bitcoind-forknet-cookie:
file: /data/secrets/bitcoind-forknet-cookie.txt
bitcoind-forknet-rpcauth.conf:
file: /data/secrets/bitcoind-forknet-rpcauth.conf
volumes:
# Paths in volume mounts work poorly with remote Docker contexts.
# We therefore specify external volumes. These can be created with
# the following command on the machine hosting the Docker context:
# $ docker volume create \
# --driver local --opt type=none \
# --opt o=bind --opt device=/data/electrs \
# electrs-forknet-data
electrs-forknet-data:
external: true
romanz-electrs-forknet-data:
external: true