docker-compose.yml 328 B

123456789101112131415161718
  1. version: '2'
  2. volumes:
  3. ipfs_repo:
  4. services:
  5. ipfs:
  6. build: .
  7. image: fphammerle/ipfs
  8. volumes:
  9. - ipfs_repo:/ipfs-repo:rw
  10. ports:
  11. - '4001:4001'
  12. - '127.0.0.1:5001:5001'
  13. security_opt: ['no-new-privileges']
  14. restart: unless-stopped
  15. # https://docs.docker.com/compose/compose-file/compose-file-v2/