Repository navigation
Expand file tree
/
Copy pathdocker-compose.regtest.yml
More file actions
179 lines (170 loc) · 4.98 KB
/
Copy pathdocker-compose.regtest.yml
File metadata and controls
179 lines (170 loc) · 4.98 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Regtest stack on the nigiri network (`nigiri start` first). arkd and the
# emulator share container names and ports with the emulator repo's stack.
services:
pgnbxplorer:
restart: unless-stopped
image: postgres:16
container_name: pgnbxplorer
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- type: tmpfs
target: /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d nbxplorer -h 127.0.0.1 -p 5432"]
interval: 2s
timeout: 2s
retries: 30
nbxplorer:
restart: unless-stopped
container_name: nbxplorer
image: nicolasdorier/nbxplorer:2.5.30
environment:
- NBXPLORER_NETWORK=regtest
- NBXPLORER_CHAINS=btc
- NBXPLORER_BTCRPCURL=http://bitcoin:18443
- NBXPLORER_BTCNODEENDPOINT=bitcoin:18444
- NBXPLORER_BTCRPCUSER=admin1
- NBXPLORER_BTCRPCPASSWORD=123
- NBXPLORER_BIND=0.0.0.0:32838
- NBXPLORER_TRIMEVENTS=10000
- NBXPLORER_SIGNALFILESDIR=/datadir
- NBXPLORER_POSTGRES=User ID=postgres;Host=pgnbxplorer;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer
- NBXPLORER_EXPOSERPC=1
- NBXPLORER_NOAUTH=1
volumes:
- type: tmpfs
target: /datadir
depends_on:
pgnbxplorer:
condition: service_healthy
arkd-wallet:
restart: unless-stopped
image: ghcr.io/arkade-os/arkd-wallet:v0.9.13
container_name: arkd-wallet
depends_on:
- nbxplorer
ports:
- "6060:6060"
environment:
- ARKD_WALLET_LOG_LEVEL=5
- ARKD_WALLET_NBXPLORER_URL=http://nbxplorer:32838
- ARKD_WALLET_DATADIR=./data/regtest
- ARKD_WALLET_NETWORK=regtest
- ARKD_WALLET_SIGNER_KEY=afcd3fa10f82a05fddc9574fdb13b3991b568e89cc39a72ba4401df8abef35f0
volumes:
- type: tmpfs
target: /app/data
arkd:
image: ghcr.io/arkade-os/arkd:v0.9.13
container_name: arkd
restart: unless-stopped
depends_on:
- arkd-wallet
ports:
- "7070:7070"
- "7071:7071"
environment:
- ARKD_LOG_LEVEL=6
- ARKD_NO_MACAROONS=true
- ARKD_VTXO_TREE_EXPIRY=512
- ARKD_SCHEDULER_TYPE=block
- ARKD_UNILATERAL_EXIT_DELAY=512
- ARKD_BOARDING_EXIT_DELAY=1024
- ARKD_CHECKPOINT_EXIT_DELAY=512
- ARKD_DATADIR=./data/regtest
- ARKD_WALLET_ADDR=arkd-wallet:6060
- ARKD_ESPLORA_URL=http://chopsticks:3000
- ARKD_ROUND_MIN_PARTICIPANTS_COUNT=1
- ARKD_ROUND_MAX_PARTICIPANTS_COUNT=128
- ARKD_VTXO_MIN_AMOUNT=1
- ARKD_LIVE_STORE_TYPE=inmemory
- ARKD_EVENT_DB_TYPE=badger
- ARKD_DB_TYPE=sqlite
- ARKD_SESSION_DURATION=10
- ARKD_BAN_THRESHOLD=1
volumes:
- type: tmpfs
target: /app/data
emulator:
image: ghcr.io/arkade-os/emulator:${EMULATOR_VERSION:-v0.0.9-rc.0}
container_name: emulator
restart: unless-stopped
ports:
- "7073:7073"
environment:
- EMULATOR_SECRET_KEY=5646b2e23bbb82491fb4ef262079ff17594d5e873fc6bcea5f1453edbe1029b1
- EMULATOR_ARKD_URL=arkd:7070
depends_on:
- arkd
fulcrum:
restart: unless-stopped
image: cculianu/fulcrum:v2.1.4
container_name: fulcrum
command: ["Fulcrum", "/etc/fulcrum.conf"]
ports:
- "50001:50001"
configs:
- source: fulcrum
target: /etc/fulcrum.conf
volumes:
- type: tmpfs
target: /data
pg:
restart: unless-stopped
image: postgres:17.8
container_name: executor-pg
ports:
- 5432:5432
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=postgres
- POSTGRES_DB=executor
volumes:
- type: tmpfs
target: /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d executor -h 127.0.0.1 -p 5432"]
interval: 2s
timeout: 2s
retries: 30
# the service itself, opt-in: `docker compose --profile executor up -d`
executor:
profiles: [executor]
build: .
container_name: executor
restart: unless-stopped
depends_on:
pg:
condition: service_healthy
emulator:
condition: service_started
fulcrum:
condition: service_started
ports:
- "7080:7080"
- "127.0.0.1:7081:7081"
environment:
- EXECUTOR_LOG_LEVEL=5
- EXECUTOR_DATABASE_URL=postgres://postgres@pg:5432/executor?sslmode=disable
- EXECUTOR_ARK_URL=arkd:7070
- EXECUTOR_EMULATOR_URL=emulator:7073
- EXECUTOR_ELECTRUM_URL=tcp://fulcrum:50001
- EXECUTOR_COSIGNER_KEY=${EXECUTOR_COSIGNER_KEY:-0000000000000000000000000000000000000000000000000000000000000001}
- EXECUTOR_EXPLORER_URL=http://chopsticks:3000
- EXECUTOR_ADMIN_AUTH=disabled
- EXECUTOR_MIN_DELEGATION_EXPIRY=0
configs:
fulcrum:
content: |
bitcoind = bitcoin:18443
rpcuser = admin1
rpcpassword = 123
tcp = 0.0.0.0:50001
peering = false
announce = false
max_subs_per_ip = 1000000
networks:
default:
name: nigiri
external: true