-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-regtest.yml
89 lines (84 loc) · 1.99 KB
/
docker-regtest.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
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
version: '3.8'
services:
db:
image: postgres:16.3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- ./regtest-data/pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
goose:
build:
context: .
dockerfile: docker/Dockerfile.goose
environment:
POSTGRES_URI: "postgres://postgres:postgres@db:5432/postgres?sslmode=disable"
volumes:
- ./sql:/src/sql
depends_on:
db:
condition: service_healthy
bitcoin:
build:
context: .
dockerfile: docker/Dockerfile.bitcoin
command:
- bitcoind
- -regtest=1
- -server=1
- -rpcuser=test
- -rpcpassword=test
- -rpcallowip=0.0.0.0/0
- -rpcbind=0.0.0.0
- -txindex=1
- -fallbackfee=0.0002
- -discover=0
- -dns=0
- -dnsseed=0
- -listenonion=0
- -upnp=0
ports:
- "18443:18443"
- "18444:18444"
volumes:
- ./regtest-data/bitcoin:/root/.bitcoin
healthcheck:
test: ["CMD", "bitcoin-cli", "-regtest", "-rpcuser=test", "-rpcpassword=test", "getblockchaininfo"]
interval: 30s
timeout: 10s
retries: 5
spaced:
build:
context: .
dockerfile: docker/Dockerfile.spaced
ports:
- "7218:7218"
volumes:
- ./regtest-data/spaced:/root/.local/share/spaced
depends_on:
bitcoin:
condition: service_healthy
sync:
build:
context: .
dockerfile: docker/Dockerfile.sync
environment:
POSTGRES_URI: "postgres://postgres:postgres@db:5432/postgres?sslmode=disable"
BITCOIN_NODE_URI: http://bitcoin:18443
BITCOIN_NODE_USER: test
BITCOIN_NODE_PASSWORD: test
SPACES_NODE_URI: http://spaced:7218
UPDATE_DB_INTERVAL: 5
depends_on:
- db
- bitcoin
- spaced
- goose