Skip to content

Instantly share code, notes, and snippets.

@gornostal
Last active May 14, 2018 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gornostal/14fd9d89f17d8a4a4087b323d2bb7dff to your computer and use it in GitHub Desktop.
Save gornostal/14fd9d89f17d8a4a4087b323d2bb7dff to your computer and use it in GitHub Desktop.
IPFS Node
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
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