-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.ark.yml
More file actions
115 lines (109 loc) · 3.3 KB
/
docker-compose.ark.yml
File metadata and controls
115 lines (109 loc) · 3.3 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Extends the base docker-compose.yml with arkd (ASP) services.
# Usage: docker compose -f docker-compose.yml -f docker-compose.ark.yml up -d
services:
# Add a "bitcoin" network alias so nbxplorer can find our bitcoind.
bitcoind:
networks:
default:
aliases:
- bitcoin
# PostgreSQL for nbxplorer
pg:
image: postgres:16
container_name: mpc_pg
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- type: tmpfs
target: /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -h 127.0.0.1 -p 5432"]
interval: 2s
timeout: 2s
retries: 30
restart: unless-stopped
# NBXplorer — blockchain indexer for arkd-wallet
nbxplorer:
image: nicolasdorier/nbxplorer:2.5.30
container_name: mpc_nbxplorer
ports:
- "32838:32838"
environment:
- NBXPLORER_NETWORK=regtest
- NBXPLORER_CHAINS=btc
- NBXPLORER_BTCRPCURL=http://bitcoin:18443
- NBXPLORER_BTCNODEENDPOINT=bitcoin:18444
- NBXPLORER_BTCRPCUSER=admin1
- NBXPLORER_BTCRPCPASSWORD=123
- NBXPLORER_VERBOSE=1
- NBXPLORER_BIND=0.0.0.0:32838
- NBXPLORER_TRIMEVENTS=10000
- NBXPLORER_SIGNALFILESDIR=/datadir
- NBXPLORER_POSTGRES=User ID=postgres;Host=mpc_pg;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer
- NBXPLORER_EXPOSERPC=1
- NBXPLORER_NOAUTH=1
volumes:
- type: tmpfs
target: /datadir
depends_on:
pg:
condition: service_healthy
restart: unless-stopped
# Redis for arkd
redis:
image: redis:7-alpine
container_name: mpc_redis
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 2s
retries: 30
restart: unless-stopped
# arkd wallet service
arkd-wallet:
image: ghcr.io/arkade-os/arkd-wallet:latest
container_name: mpc_arkd_wallet
depends_on:
- nbxplorer
ports:
- "6060:6060"
environment:
- ARKD_WALLET_LOG_LEVEL=5
- ARKD_WALLET_NBXPLORER_URL=http://mpc_nbxplorer:32838
- ARKD_WALLET_DATADIR=./data/regtest
- ARKD_WALLET_NETWORK=regtest
# Hardcoded regtest signer key (same as arkd's official test setup)
- ARKD_WALLET_SIGNER_KEY=afcd3fa10f82a05fddc9574fdb13b3991b568e89cc39a72ba4401df8abef35f0
restart: unless-stopped
# arkd — Ark Service Provider
arkd:
image: ghcr.io/arkade-os/arkd:latest
container_name: mpc_arkd
depends_on:
- arkd-wallet
- pg
- redis
ports:
- "7070:7070"
- "7071:7071"
environment:
- ARKD_LOG_LEVEL=5
- ARKD_NO_MACAROONS=true
- ARKD_VTXO_TREE_EXPIRY=3600
- ARKD_SCHEDULER_TYPE=gocron
- ARKD_UNILATERAL_EXIT_DELAY=512
- ARKD_BOARDING_EXIT_DELAY=1024
- ARKD_CHECKPOINT_EXIT_DELAY=10
- ARKD_DATADIR=./data/regtest
- ARKD_WALLET_ADDR=mpc_arkd_wallet:6060
# Our electrs serves the Esplora REST API on port 30000
- ARKD_ESPLORA_URL=http://mpc_electrs:30000
- ARKD_ROUND_MIN_PARTICIPANTS_COUNT=1
- ARKD_ROUND_MAX_PARTICIPANTS_COUNT=128
- ARKD_VTXO_MIN_AMOUNT=1
- ARKD_DB_TYPE=sqlite
- ARKD_EVENT_DB_TYPE=badger
- ARKD_LIVE_STORE_TYPE=inmemory
- ARKD_SESSION_DURATION=10
- ARKD_BAN_THRESHOLD=1
restart: unless-stopped