forked from Deuxfleurs/infrastructure
Fix docker volume
This commit is contained in:
parent
81480fa1f9
commit
faf39bbb28
2 changed files with 12 additions and 1 deletions
|
@ -26,5 +26,9 @@ client {
|
||||||
#cpu_total_compute = 4000
|
#cpu_total_compute = 4000
|
||||||
servers = ["127.0.0.1:4648"]
|
servers = ["127.0.0.1:4648"]
|
||||||
network_interface = "{{ interface }}"
|
network_interface = "{{ interface }}"
|
||||||
|
options {
|
||||||
|
docker.privileged.enabled = "true"
|
||||||
|
docker.volumes.enabled = "true"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,15 @@ job "seafile" {
|
||||||
seafhttp_port = 8082
|
seafhttp_port = 8082
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mounts = [
|
||||||
|
{
|
||||||
|
type = "bind"
|
||||||
|
source = "/mnt/glusterfs/seafile"
|
||||||
|
target = "/mnt/seafile-data"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/mnt/glusterfs/seafile:/mnt/seafile-data",
|
|
||||||
"secrets/conf:/srv/webstore/conf",
|
"secrets/conf:/srv/webstore/conf",
|
||||||
"secrets/ccnet:/srv/webstore/ccnet"
|
"secrets/ccnet:/srv/webstore/ccnet"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue