-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
60 lines (58 loc) · 1.36 KB
/
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
services:
btc:
container_name: btc
image: bitcoin/bitcoin:latest
command:
-printtoconsole
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-rpcauth=${RPC_AUTH}
-maxconnections=50
-txindex=1
-rest
# -testnet=1
# -regtest=1
volumes:
- /data/btc:/home/bitcoin/.bitcoin
ports:
# Mainnet
- "8332:8332" # JSON-RPC/REST
- "8333:8333" # P2P
# # Testnet
# - "18332:18332" # RPC
# - "18333:18333" # P2P
# # Regtest
# - "18443:18443" # RPC
# - "18444:18444" # P2P
# # Signet
# - "38332:38332" # RPC
# - "38333:38333" # P2P
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
'bitcoin-cli -rpcconnect=127.0.0.1 -rpcuser=satoshi -rpcpassword=${RPC_PASSWORD} getblockchaininfo | grep -q ''"initialblockdownload": false''',
]
interval: 30s
timeout: 10s
retries: 5
nginx:
container_name: nginx
image: jonasal/nginx-certbot:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- nginx_secrets:/etc/letsencrypt
- ./user_conf.d:/etc/nginx/user_conf.d
env_file:
- nginx-certbot.env
depends_on:
btc:
condition: service_healthy
ord:
condition: service_started
volumes:
nginx_secrets: