1234567891011121314151617181920212223242526272829303132 |
- version: '2.3'
- volumes:
- ipfs_repo:
- services:
- ipfs:
- container_name: ipfs
- build: .
- image: docker.io/fphammerle/ipfs
- #environment:
- # IPFS_GATEWAY_ADDR: /ip4/0.0.0.0/tcp/8080
- read_only: true
- volumes:
- - type: volume
- source: ipfs_repo
- target: /ipfs-repo
- read_only: no
- - type: tmpfs
- target: /tmp # entrypoint.sh
- tmpfs:
- # nosuid,nodev,noexec added by default
- size: 16k # default config has approx 5kB
- ports:
- - '4001:4001'
- - '127.0.0.1:5001:5001'
- #- '127.0.0.1:8080:8080' # requires IPFS_GATEWAY_ADDR=/ip4/0.0.0.0/tcp/8080
- cap_drop: [ALL]
- security_opt: [no-new-privileges]
- restart: unless-stopped
- # https://docs.docker.com/compose/compose-file/compose-file-v2/
|