-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.75 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
version: '3'
services:
# cluster:
# image: ipfs/ipfs-cluster
# ports:
# - 8080:8080
# - 4001:4001
# - 5001:5001
# volumes:
# - ./cluster/config:/data/ipfs-cluster
# node-1:
# # docker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/data/ipfs -p 4001:4001 -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/go-ipfs:latest
# image: ipfs/go-ipfs:latest
# ports:
# - 4001:4001
# - 8080:8080
# - 5001:5001
# volumes:
# # - type: bind
# # source: ./staging_dir
# # target: /export
# # - type: bind
# # source: ./data_dir
# # target: /data/ipfs
# - ./staging_dir:/export
# # - ./data_dir:/data/ipfs
# - node-1:/data/ipfs
node-2:
# image: ipfs/go-ipfs:latest
build:
context: private-network
environment:
LIBP2P_FORCE_PNET: '1'
# SWARM_KEY: "/key/swarm/psk/1.0.0/\n/base16/\ne0e7b1394fb6e928eecf2f8db77eaa99d3657684dc939519f285cb902bd93e22"
volumes:
- node-2:/data/ipfs
- ./private-network/.ipfs/swarm.key:/data/ipfs/swarm.key
- ./private-network/init.sh:/usr/local/bin/start_ipfs
ports:
- 8080
node-3:
build:
context: private-network
environment:
LIBP2P_FORCE_PNET: '1'
# SWARM_KEY: "/key/swarm/psk/1.0.0/\n/base16/\ne0e7b1394fb6e928eecf2f8db77eaa99d3657684dc939519f285cb902bd93e22"
SWARM_PEER: /ip4/172.18.0.2/tcp/4001/ipfs/QmUrp1E4ArW1ZDdFHnQrKfdH8tgGxM38hmPyjXEEoTmfto
volumes:
- node-3:/data/ipfs
- ./private-network/.ipfs/swarm.key:/data/ipfs/swarm.key
- ./private-network/init.sh:/usr/local/bin/start_ipfs
ports:
- 8080
volumes:
node-1:
node-2:
node-3: