docker-compose.yml 770 B

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