Skip to content

Commit

Permalink
Easy run ipfs daemon with Docker Compose
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
  • Loading branch information
manandbytes committed Jun 8, 2018
1 parent 021d4ef commit b323d4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ for Maven, add the following sections to your pom.xml (replacing $LATEST_VERSION
* Copy `dist/ipfs.jar` into your project. Appropriate versions of other [dependencies](#Dependencies) are also included in `dist/lib/`.
* Run tests using `ant test`.

### Running tests

To run tests, IPFS daemon must be running on `127.0.0.1` interface. Here are some ways to make setting it up easier.

#### Docker Compose

Run `docker-compose up` from the project's root directory. Check [docker-compose.yml](docker-compose.yml) for more details.

## Usage

Create an IPFS instance with:
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '2'
services:
ipfs-daemon:
image: 'ipfs/go-ipfs'
ports:
- "4001:4001"
- "5001:5001"
user: "ipfs"
command: [ "daemon", "--enable-pubsub-experiment" ]

0 comments on commit b323d4b

Please sign in to comment.