Skip to content

Commit

Permalink
update docker and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tarassh committed Mar 18, 2024
1 parent a7b6266 commit 7695c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apk del git && rm -rf /var/cache/apk/* /root/.npm /tmp/*
HEALTHCHECK --interval=10s --timeout=5s CMD wget --no-verbose --tries=1 --spider localhost:3001/health

ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
CMD [ "./ipfs-server -port 3001 -w3-agent-key $W3_AGENT_KEY -w3-delegation-file $W3_DELEGATION_FILE" ]
CMD [ "./ipfs-server -port 3001 -w3-agent-key $W3_AGENT_KEY -w3-delegation-file $W3_DELEGATION_FILE --enable-gc" ]

# ipfs-pinner API server;
EXPOSE 3001
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ NOTE: If you want more control over CLI params, you can run the server binary (a
NOTE: If you get some error when running this, check if the diagnostic is there in [known issues](#known-issues)

NOTE: If you want to run the server with garbage collection enabled, you can run the server binary with the `--enable-gc` flag:

```bash
./build/bin/server -w3-agent-key <AGENT_KEY> -w3-delegation-file <DELEGATION_PROOF_FILE_PATH> --enable-gc
```
Garbage Collector can be configured through IPFS config file `~/.ipfs/config`. More information can be found [here](https://github.com/ipfs/kubo/blob/master/docs/config.md#datastore)

ipfs-pinner can be run as a server and allows two functionalities currently - `/get` and `/upload`

Expand Down

0 comments on commit 7695c3d

Please sign in to comment.