Skip to content

Commit

Permalink
host mode in ipfs (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
LowEntropyBody authored Nov 4, 2020
1 parent 3b87dbb commit a71da80
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions generator/config-gen/ipfs-config.gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ async function genIpfsConfig(config, outputCfg) {
async function genIpfsComposeConfig(config) {
return {
image: 'ipfs/go-ipfs:latest',
ports: [
'4001:4001',
'5001:5001',
'37773:8080',
],
network_mode: 'host',
volumes: [
'/opt/crust/data/ipfs:/data/ipfs'
]
],
entrypoint: '/sbin/tini --',
command: '/bin/sh -c "if [ ! -e \'/data/ipfs/config\' ]; then ipfs init; ipfs config Addresses.Gateway /ip4/127.0.0.1/tcp/37773; fi && /usr/local/bin/start_ipfs daemon --migrate=true"',
}
}

Expand Down

0 comments on commit a71da80

Please sign in to comment.