diff --git a/ansible/roles/nomad/templates/nomad.hcl.j2 b/ansible/roles/nomad/templates/nomad.hcl.j2 index 8107410..b0be6a8 100644 --- a/ansible/roles/nomad/templates/nomad.hcl.j2 +++ b/ansible/roles/nomad/templates/nomad.hcl.j2 @@ -26,5 +26,9 @@ client { #cpu_total_compute = 4000 servers = ["127.0.0.1:4648"] network_interface = "{{ interface }}" + options { + docker.privileged.enabled = "true" + docker.volumes.enabled = "true" + } } diff --git a/nomad/seafile.hcl b/nomad/seafile.hcl index f118999..9c26df2 100644 --- a/nomad/seafile.hcl +++ b/nomad/seafile.hcl @@ -24,8 +24,15 @@ job "seafile" { seafhttp_port = 8082 } + mounts = [ + { + type = "bind" + source = "/mnt/glusterfs/seafile" + target = "/mnt/seafile-data" + } + ] + volumes = [ - "/mnt/glusterfs/seafile:/mnt/seafile-data", "secrets/conf:/srv/webstore/conf", "secrets/ccnet:/srv/webstore/ccnet" ]