docker-compose.yml 361 B

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