forked from jvstein/bitcoin-prometheus-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 910 Bytes
/
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
version: '3.3'
services:
bitcoind:
# DO NOT USE THIS IMAGE EXCEPT FOR TESTING!
image: jvstein/bitcoin-test-node:latest
command:
- bitcoind
- -printtoconsole
- -conf=/etc/bitcoin/bitcoin.conf
volumes:
- ./test-bitcoin.conf:/etc/bitcoin/bitcoin.conf
exporter:
image: jvstein/bitcoin-prometheus-exporter:latest
build: .
ports:
- "9332:9332"
environment:
BITCOIN_RPC_HOST: bitcoind
BITCOIN_RPC_USER: "alice"
BITCOIN_RPC_PASSWORD: "password=123&z!=@e"
#BITCOIN_CONF_PATH: /etc/bitcoin/bitcoin.conf
REFRESH_SECONDS: 1
LOG_LEVEL: "INFO"
depends_on:
- bitcoind
#volumes:
# For explicit config file path (with BITCOIN_CONF_PATH above).
# - ./test-bitcoin.conf:/etc/bitcoin/bitcoin.conf
# For default bitcoin config location (nobody user).
# - ./test-bitcoin.conf:/.bitcoin/bitcoin.conf