---
version: "2"
services:
ipfs:
image: linuxserver/ipfs:2.14.0
container_name: ipfs
restart: unless-stopped
environment:
- TZ=Europe/London # Specify a timezone to use
- PUID=1000 # User ID to run as
- PGID=1000 # Group ID to run as
volumes:
- /host/path/to/config:/config # Contains all relevant configuration files.
ports:
- 80880:80880/tcp # Gateway port, this serves IPFS content
- 5001:5001/tcp # API port, clients need to be able to talk to this port
- 4001:4001/tcp # Peering port, this should be exposed to the internet
- 443:443/tcp # HTTPS Web UI
- 80:80/tcp # Web UI