-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (67 loc) · 1.47 KB
/
docker-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
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
bitcoin1:
env_file: .env
build:
context: ./bitcoin-core
args:
BITCOIN_VER: $BITCOIN_VER
image: bitcoin-core:$BITCOIN_VER
container_name: bitcoin1
hostname: bitcoin1
ports:
- "18332:18332"
networks:
- bitcoin-local-network
command: >
/bin/bash -c "
bitcoind -regtest -port=19001 &&
tail -f /dev/null"
bitcoin2:
env_file: .env
build:
context: ./bitcoin-core
args:
BITCOIN_VER: $BITCOIN_VER
image: bitcoin-core:$BITCOIN_VER
container_name: bitcoin2
hostname: bitcoin2
ports:
- "19332:18332"
networks:
- bitcoin-local-network
command: >
/bin/bash -c "
bitcoind -regtest -connect=bitcoin1:19001 &&
tail -f /dev/null"
cors1:
environment:
RPC_URL: http://bitcoin1:18332
build:
context: ./cors
image: cors:1
container_name: cors1
hostname: cors1
ports:
- "5000:5000"
networks:
- bitcoin-local-network
command: >
/bin/sh -c "python /home/cors/cors.py && tail -f /dev/null"
cors2:
environment:
RPC_URL: http://bitcoin2:18332
build:
context: ./cors
image: cors:1
container_name: cors2
hostname: cors2
ports:
- "5001:5000"
networks:
- bitcoin-local-network
command: >
/bin/sh -c "python /home/cors/cors.py && tail -f /dev/null"
networks:
bitcoin-local-network:
external: true