docker-compose-with-storage.yml 790 B

1234567891011121314151617181920212223242526272829303132
  1. version: '3'
  2. services:
  3. ipfs:
  4. image: ipfs/go-ipfs:latest
  5. ports:
  6. - '127.0.0.1:5001:5001'
  7. - '127.0.0.1:8080:8080'
  8. volumes:
  9. - ipfs-data:/data/ipfs
  10. entrypoint: ''
  11. command: |
  12. /bin/sh -c "
  13. set -e
  14. /usr/local/bin/start_ipfs config profile apply lowpower
  15. /usr/local/bin/start_ipfs config --json Gateway.PublicGateways '{\"localhost\": null }'
  16. /sbin/tini -- /usr/local/bin/start_ipfs daemon --migrate=true
  17. "
  18. chain:
  19. image: joystream/node
  20. build:
  21. context: .
  22. dockerfile: joystream-node.Dockerfile
  23. ports:
  24. - '127.0.0.1:9944:9944'
  25. volumes:
  26. - chain-data:/data
  27. command: --dev --ws-external --base-path /data
  28. volumes:
  29. ipfs-data:
  30. driver: local
  31. chain-data:
  32. driver: local