forked from kylemanna/docker-bitcoind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
btc.yml
57 lines (55 loc) · 1.55 KB
/
btc.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
x-logging: &logging
logging:
driver: json-file
options:
max-size: 20m
max-file: "3"
services:
bitcoind:
restart: unless-stopped
build:
context: ./
dockerfile: Dockerfile
args:
- VERSION=${BTCD_VERSION}
- GROUP_ID=10000
- USER_ID=10000
- BITCOIN_CORE_SIGNATURE=${GPG_SIGNATURE:-152812300785C96444D3334D17565732E08E5E41}
image: bitcoind:local
pull_policy: build
environment:
- DISABLEWALLET=1
- PRINTTOCONSOLE=1
- TXINDEX=1
- RPCUSER=${RPC_USER}
- RPCPASSWORD=${RPC_PW}
stop_grace_period: 1m
volumes:
- bitcoind-data:/bitcoin/.bitcoin
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 8333:8333/tcp
expose:
- 8332/tcp
<<: *logging
entrypoint:
- docker-entrypoint.sh
command:
- btc_oneshot
- -rpcbind=:8332
- -rpcallowip=0.0.0.0/0
- -v2transport=1
labels:
- traefik.enable=true
- traefik.http.routers.btc.entrypoints=websecure
- traefik.http.routers.btc.rule=Host(`${BTC_HOST}.${DOMAIN}`)
- traefik.http.routers.btc.service=btc
- traefik.http.routers.btc.tls.certresolver=letsencrypt
- traefik.http.routers.btclb.entrypoints=websecure
- traefik.http.routers.btclb.rule=Host(`${BTC_LB}.${DOMAIN}`)
- traefik.http.routers.btclb.service=btc
- traefik.http.routers.btclb.tls.certresolver=letsencrypt
- traefik.http.services.btc.loadbalancer.server.port=8332
volumes:
bitcoind-data: