-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
127 lines (122 loc) · 3.31 KB
/
docker-compose.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: '3'
networks:
libp2p:
driver: bridge
services:
soketi:
build:
context: .
dockerfile: Dockerfile
networks:
- libp2p
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
environment:
DEBUG: 'libp2p:*'
SOKETI_P2P_SWARM_KEY: |-
/key/swarm/psk/1.0.0/
/base64/
eWPS6sIlS74fXQJgrxtzvBF+zqo7UUg61BYLfAUyJ1CM4/3GHHxCwO9tojUnaqgfMRuGo/n0Km18rtLXeAy5HA==
entrypoint:
- 'node'
- '--no-warnings'
- '--experimental-modules'
- '--es-module-specifier-resolution=node'
- '/app/dist/packages/cli/index.js'
- ipfs
- start
scale: 3
ports:
- 7001-7003:7001
kubo:
image: ipfs/kubo:release
container_name: kubo
volumes:
- ./.ipfs/kubo/data/ipfs:/data/ipfs
- ./.ipfs/kubo/ipfs:/ipfs
- ./.ipfs/kubo/ipns:/ipns
- ./.ipfs/kubo/init.d/001-initialize-kubo.sh:/container-init.d/001-initialize-kubo.sh
networks:
- libp2p
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
environment:
DEBUG: '*'
IPFS_PATH: /data/ipfs
IPFS_FD_MAX: 10000
# IPFS_HTTP_ROUTERS: 'http://soketi:7001'
IPFS_PROFILE: 'local-discovery'
LIBP2P_FORCE_PNET: '1'
IPFS_SWARM_KEY: |-
/key/swarm/psk/1.0.0/
/base64/
eWPS6sIlS74fXQJgrxtzvBF+zqo7UUg61BYLfAUyJ1CM4/3GHHxCwO9tojUnaqgfMRuGo/n0Km18rtLXeAy5HA==
ports:
- 4001:4001
- 4001:4001/udp
- 5001:5001
- 8080:8080
- 8081:8081
cluster:
image: ipfs/ipfs-cluster:latest
container_name: cluster
depends_on:
- kubo
networks:
- libp2p
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
environment:
DEBUG: '*'
CLUSTER_PEERNAME: cluster
CLUSTER_SECRET: 'c2b82fedbd69cc89b9fb691b4b4cc9b1966f5ec34717568673b6c19f8fa336b7'
CLUSTER_IPFSHTTP_NODEMULTIADDRESS: /dns4/kubo/tcp/5001
CLUSTER_CRDT_TRUSTEDPEERS: '*' # Trust all peers in Cluster
CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS: /ip4/0.0.0.0/tcp/9094 # Expose API
CLUSTER_MONITORPINGINTERVAL: 2s # Speed up peer discovery
CLUSTER_ENABLERELAYHOP: 'true'
ports:
# Open API port (allows ipfs-cluster-ctl usage on host)
- '127.0.0.1:9094:9094'
# The cluster swarm port would need to be exposed if this container
# was to connect to cluster peers on other hosts.
# But this is just a testing cluster.
- '9095:9095' # Cluster IPFS Proxy endpoint
- '9096:9096' # Cluster swarm endpoint
volumes:
- ./.ipfs/cluster/data:/data/ipfs-cluster
http_gateway:
image: ghcr.io/ipfs/helia-http-gateway:latest
container_name: http_gateway
networks:
- libp2p
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
ports:
- 9090:9090
volumes:
- ./.ipfs/http-gateway/data:/data
environment:
DEBUG: '*'
PORT: '9090'
USE_BITSWAP: true
USE_LIBP2P: true
USE_TRUSTLESS_GATEWAYS: true
USE_DELEGATED_ROUTING: true
TRUSTLESS_GATEWAYS: 'http://127.0.0.1:9090'
DELEGATED_ROUTING_V1_HOST: 'http://127.0.0.1:9090'
FILE_BLCOKSTORE_PATH: '/data/blockstore'
FILE_DATASTORE_PATH: '/data/datastore'
ECHO_HEADERS: true