Commit 758c2afe authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Add initial deploy configuration

parent 96371567
Loading
Loading
Loading
Loading

.env

0 → 100644
+5 −0
Original line number Diff line number Diff line
NFS_SERVER_PORT=2049
NFS_SERVER_EXPOSED_PORT=2049
NFS_SERVER_PORT_MODE=host
NFS_EXPORT_0=/nfs 10.0.0.0/8(ro,fsid=0,insecure,no_subtree_check)
NFS_EXPORT_1=/nfs/docker-config 10.0.0.0/8(rw,insecure,no_subtree_check,wdelay,root_squash)

docker-compose.yml

0 → 100644
+30 −0
Original line number Diff line number Diff line
version: '3.7'

services:
  nfs-server:
    image: ${IMAGE_NAME:-erichough/nfs-server}:${IMAGE_TAG:-latest}
    container_name: nfs-server
    environment:
      NFS_PORT: ${NFS_SERVER_PORT}
      NFS_VERSION: '4.2'
      NFS_DISABLE_VERSION_3: 1
      NFS_EXPORT_0:
      NFS_EXPORT_1:
    ports:
      - target: ${NFS_SERVER_PORT}
        published: ${NFS_SERVER_EXPOSED_PORT}
        protocol: tcp
        mode: ${NFS_SERVER_PORT_MODE}
      - target: ${NFS_SERVER_PORT}
        published: ${NFS_SERVER_EXPOSED_PORT}
        protocol: udp
        mode: ${NFS_SERVER_PORT_MODE}
    volumes:
      - data-vol:/nfs
    cap_add:
      - SYS_ADMIN
    restart: always

volumes:
  data-vol:
    name: ${NFS_SERVER_DATA_VOL_NAME:-nfs-data-vol}