Docker

Capacities

NFS

Mount an NFS Volume with Docker Compose

version: '2'
volumes:
  nfs_volume_name:
    driver: local
    driver_opts:
      type: nfs4
      o: "addr=192.168.0.xxx,rw,noatime,rsize=8192,wsize=8192,tcp,timeo=14"
      device: ":path/to/volume"
services:
  image_name:
    image: "image:latest"
    volumes:
      - nfs_volume_name:/data/test_nfs
version: "3.2"

services:
  rsyslog:
    image: jumanjiman/rsyslog
    ports:
      - "514:514"
      - "514:514/udp"
    volumes:
      - type: volume
        source: example
        target: /nfs
        volume:
          nocopy: true
volumes:
  example:
    driver_opts:
      type: "nfs"
      o: "addr=10.40.0.199,nolock,soft,rw"
      device: ":/docker/example"