master
yaml 28 lines 795 Bytes
Raw
1 version: '3.8'
2 services:
3 ipfs:
4 build: .
5 restart: unless-stopped
6 volumes:
7 - ipfs_path:/data/ipfs
8 - ipfs_fuse:/ipfs
9 - ipns_fuse:/ipns
10 environment:
11 - IPFS_PATH=/data/ipfs
12 ports:
13 # Swarm listens on all interfaces, so is remotely reachable.
14 - 4001:4001/tcp
15 - 4001:4001/udp
16
17 # The following ports only listen on the loopback interface, so are not remotely reachable by default.
18 # If you want to override these or add more ports, see https://docs.docker.com/compose/extends/ .
19
20 # API port, which includes admin operations, so you probably don't want this remotely accessible.
21 - 127.0.0.1:5001:5001
22
23 # HTTP Gateway
24 - 127.0.0.1:8080:8080
25 volumes:
26 ipfs_path:
27 ipfs_fuse:
28 ipns_fuse: