-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
51 lines (47 loc) · 1.39 KB
/
Copy pathcompose.yml
File metadata and controls
51 lines (47 loc) · 1.39 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
services:
# Node 1
bitcoin-node-1: &bitcoin-node
build:
dockerfile: ./bitcoin/bitcoin-node-1/Dockerfile
container_name: bitcoin-node-1
ports:
- "41443:18443"
- "41444:18444"
networks:
- bitcoin-net
# Persist chain and wallet data so it survives container recreation
# (e.g. on `stop`/`start`). `reset` removes these volumes for a clean
# slate. Note: each node's bitcoin.conf is baked into its image, so
# editing it requires `reset` (which rebuilds) to take effect.
volumes:
- bitcoin-node-1-data:/home/bitcoin/.bitcoin
# Node 2
bitcoin-node-2:
<<: *bitcoin-node
build:
dockerfile: ./bitcoin/bitcoin-node-2/Dockerfile
container_name: bitcoin-node-2
ports:
- "42443:18443"
- "42444:18444"
# Override the volume inherited from the anchor so node 2 keeps its own
# separate data store rather than sharing node 1's.
volumes:
- bitcoin-node-2-data:/home/bitcoin/.bitcoin
# Tools container for CLI interaction and wallet management
bitcoin-tools:
build:
dockerfile: ./bitcoin/bitcoin-tools/Dockerfile
container_name: bitcoin-tools
profiles:
- tools
networks:
- bitcoin-net
volumes:
- ./bitcoin/bitcoin-tools/bitcoin.conf:/home/bitcoin/.bitcoin/bitcoin.conf
networks:
bitcoin-net:
driver: bridge
volumes:
bitcoin-node-1-data:
bitcoin-node-2-data: