1
0

docker-compose.yml 645 B

123456789101112131415161718192021222324252627282930
  1. version: '2.3'
  2. volumes:
  3. ipfs_repo:
  4. services:
  5. ipfs:
  6. build: .
  7. image: docker.io/fphammerle/ipfs
  8. container_name: ipfs
  9. read_only: true
  10. volumes:
  11. - type: volume
  12. source: ipfs_repo
  13. target: /ipfs-repo
  14. read_only: no
  15. - type: tmpfs
  16. target: /tmp # entrypoint.sh
  17. tmpfs:
  18. # nosuid,nodev,noexec added by default
  19. mode: '1777'
  20. size: 16k # default config has approx 5kB
  21. ports:
  22. - '4001:4001'
  23. - '127.0.0.1:5001:5001'
  24. cap_drop: [ALL]
  25. security_opt: [no-new-privileges]
  26. restart: unless-stopped
  27. # https://docs.docker.com/compose/compose-file/compose-file-v2/