-
Notifications
You must be signed in to change notification settings - Fork 173
/
docker-compose.yml
59 lines (55 loc) · 1.91 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
version: "3.9"
services:
bitcoin-core:
container_name: mainnet-bitcoin-core
image: ruimarinho/bitcoin-core:0.21.1
command: -printtoconsole -txindex -server -rpcuser=user -rpcpassword=password -rpcallowip=0.0.0.0/0 -rpcbind=0.0.0.0
environment:
- BITCOIN_DATA=/data/bitcoin
volumes:
# the ":-" means if ION_DATA_VOLUME is not set or empty, substitute with "~/ion-data"
# see https://docs.docker.com/compose/compose-file/compose-file-v3/#variable-substitution for detail on variable substitution
- ${ION_DATA_VOLUME:-~/ion-data}/bitcoin:/data/bitcoin
ports:
- "8332:8332"
mongo:
container_name: mongo
image: mongo:4.0.27-xenial
volumes:
# mongo image by default writes to `/data/db` inside the container
- ${ION_DATA_VOLUME:-~/ion-data}/mongo:/data/db
ports:
- "27017:27017"
ipfs:
container_name: ipfs
image: ipfs/go-ipfs:v0.13.0
environment:
- IPFS_PATH=/data/ipfs
volumes:
- ${ION_DATA_VOLUME:-~/ion-data}/ipfs:/data/ipfs
ports:
- "4001:4001" # inbound TCP traffic
- "5001:5001" # API port
ion-bitcoin:
container_name: mainnet-ion-bitcoin
image: gabetbd/ion:1.0.5
command: [ node, "src/bitcoin.js" ]
working_dir: /ion
environment:
- ION_BITCOIN_CONFIG_FILE_PATH=/config/docker-mainnet-bitcoin-config.json
- ION_BITCOIN_VERSIONING_CONFIG_FILE_PATH=/config/mainnet-bitcoin-versioning.json
volumes:
# for optional fast initialization feature
- ${ION_DATA_VOLUME:-~/ion-data}/bitcoin:/data/bitcoin
ports:
- "3002:3002"
ion-core:
container_name: mainnet-ion-core
image: gabetbd/ion:1.0.5
command: [ node, "src/core.js" ]
working_dir: /ion
environment:
- ION_CORE_CONFIG_FILE_PATH=/config/docker-mainnet-core-config.json
- ION_CORE_VERSIONING_CONFIG_FILE_PATH=/config/mainnet-core-versioning.json
ports:
- "3000:3000"