Commit 124e2a72 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Adapta configuración a nuevo entorno

parent 81ce2128
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2,5 +2,4 @@ NFS_VERSION=4.2
NFS_PORT=2049

NFS_ROOT_PATH=/nfs
NFS_ROOT_ADDR=10.0.0.0/8
NFS_ROOT_OPTS=rw,fsid=0,crossmnt,insecure,no_subtree_check,no_root_squash,async
+1 −2
Original line number Diff line number Diff line
include:
  - project: 'pedroetb-projects/gitlab-ci-templates'
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'

@@ -9,4 +9,3 @@ stages:
.deploy:
  variables:
    FORCE_DOCKER_COMPOSE: 1
    SERVICES_TO_CHECK: ${CI_PROJECT_NAME}
+2 −0
Original line number Diff line number Diff line
# nfs-server

Deployment of NFS server, to share contents (Docker Swarm volumes) between different hosts

## AppArmor

If your Docker host has [AppArmor](https://wiki.ubuntu.com/AppArmor) activated, you'll need to perform additional steps to allow the container to start an NFS server.
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ services:
      NFS_PORT:
      NFS_VERSION:
      NFS_DISABLE_VERSION_3: 1
      NFS_EXPORT_0: ${NFS_ROOT_PATH} ${NFS_ROOT_ADDR}(${NFS_ROOT_OPTS})
      NFS_EXPORT_0: ${NFS_ROOT_PATH} 10.0.0.0/8(${NFS_ROOT_OPTS}) 172.16.0.0/12(${NFS_ROOT_OPTS}) 192.168.0.0/16(${NFS_ROOT_OPTS})
    network_mode: host
    ports:
      - ${EXPOSED_PORT:-2049}:${NFS_PORT}