Skip to content

Commit c82ce2f

Browse files
authored
Merge pull request #75 from manandbytes/docker-compose
Easy run ipfs daemon with Docker Compose
2 parents 021d4ef + b323d4b commit c82ce2f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ for Maven, add the following sections to your pom.xml (replacing $LATEST_VERSION
5252
* Copy `dist/ipfs.jar` into your project. Appropriate versions of other [dependencies](#Dependencies) are also included in `dist/lib/`.
5353
* Run tests using `ant test`.
5454

55+
### Running tests
56+
57+
To run tests, IPFS daemon must be running on `127.0.0.1` interface. Here are some ways to make setting it up easier.
58+
59+
#### Docker Compose
60+
61+
Run `docker-compose up` from the project's root directory. Check [docker-compose.yml](docker-compose.yml) for more details.
62+
5563
## Usage
5664

5765
Create an IPFS instance with:

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '2'
2+
services:
3+
ipfs-daemon:
4+
image: 'ipfs/go-ipfs'
5+
ports:
6+
- "4001:4001"
7+
- "5001:5001"
8+
user: "ipfs"
9+
command: [ "daemon", "--enable-pubsub-experiment" ]

0 commit comments

Comments
 (0)