Last active
May 14, 2018 09:33
-
-
Save gornostal/14fd9d89f17d8a4a4087b323d2bb7dff to your computer and use it in GitHub Desktop.
IPFS Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' | |
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.4' | |
services: | |
ipfs: | |
image: ipfs/go-ipfs | |
container_name: ipfs | |
restart: always | |
ports: | |
- 4001:4001 | |
- 127.0.0.1:8080:8080 | |
- 5001:5001 | |
volumes: | |
- ./ipfs_data:/data/ipfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment