-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
67 lines (65 loc) · 1.67 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
version: '2'
services:
ipfsA:
image: ipfs/go-ipfs
container_name: "ipfsA"
ports:
- 4001:4001
- 5001:5001
volumes:
- ./ipfsA:/data/ipfs/
clusterA:
image: ipfs/ipfs-cluster:latest
container_name: "ipfs-cluster-A"
environment:
CLUSTER_IPFSHTTP_NODEMULTIADDRESS: /dns4/ipfsA/tcp/5001
CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS: /ip4/0.0.0.0/tcp/9094 # Expose API
IPFS_BOOTSTRAP_RM_ALL: "true"
ports:
- 7094:9094
depends_on:
- ipfsA
volumes:
- ./clusterA:/data/ipfs-cluster
ipfsB:
image: ipfs/go-ipfs
container_name: "ipfsB"
ports:
- 6001:4001
- 7001:5001
volumes:
- ./ipfsB:/data/ipfs/
clusterB:
image: ipfs/ipfs-cluster:latest
container_name: "ipfs-cluster-B"
environment:
CLUSTER_IPFSHTTP_NODEMULTIADDRESS: /dns4/ipfsB/tcp/5001
CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS: /ip4/0.0.0.0/tcp/9094 # Expose API
IPFS_BOOTSTRAP_RM_ALL: "true"
ports:
- 8094:9094
depends_on:
- ipfsB
volumes:
- ./clusterB:/data/ipfs-cluster
ipfsC:
image: ipfs/go-ipfs
container_name: "ipfsC"
ports:
- 8001:4001
- 9001:5001
volumes:
- ./ipfsC:/data/ipfs/
clusterC:
image: ipfs/ipfs-cluster:latest
container_name: "ipfs-cluster-C"
environment:
CLUSTER_IPFSHTTP_NODEMULTIADDRESS: /dns4/ipfsC/tcp/5001
CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS: /ip4/0.0.0.0/tcp/9094 # Expose API
IPFS_BOOTSTRAP_RM_ALL: "true"
ports:
- 9094:9094
depends_on:
- ipfsC
volumes:
- ./clusterC:/data/ipfs-cluster