-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.11 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
services:
server:
build: .
container_name: server
restart: always
ports:
- "8080:8080"
volumes:
- ./packages/server/:/usr/src/app/packages/server/
depends_on:
- mongo
- bitcoind
networks:
- app-network
mongo:
image: mongo:latest
container_name: mongo
restart: always
ports:
- "27017:27017"
networks:
- app-network
bitcoind:
image: ruimarinho/bitcoin-core:latest
container_name: bitcoind
restart: always
command:
-printtoconsole
-regtest=1
-rest
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-rpcuser=foo
-rpcpassword=bar
-rpcport=18443
-server
-fallbackfee=0.0002
ports:
- "18443:18443"
networks:
- app-network
volumes:
- ./bitcoin-init.sh:/home/bitcoin/bitcoin-init.sh
entrypoint: ["/bin/sh", "-c", "/home/bitcoin/bitcoin-init.sh & bitcoind -printtoconsole -regtest=1 -rest -rpcallowip=0.0.0.0/0 -rpcbind=0.0.0.0 -rpcuser=foo -rpcpassword=bar -rpcport=18443 -server -fallbackfee=0.0002"]
networks:
app-network:
driver: bridge