> For the complete documentation index, see [llms.txt](https://exobrain.stfwn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://exobrain.stfwn.com/fixes-and-snippets/docker.md).

# Docker

## Mount Network File System (NFS) as a volume

1. Check the NFS export list for a particular IP with `showmount -e <IP>`
2. In `docker-compose.yml`:

```
services:
  some-service:
    volumes:
      - type: volume
        source: some-nfs-volume
        target: /destination/in/container
        volume:
          nocopy: true

volumes:
  some-nfs-volume:
    driver: local
    driver_opts:
      type: nfs
      o: "addr=<IP>,nolock,soft,rw,"
      device: ":/exported/NFS/path/"
```
