forked from admin/ansible
Nextcloud rebalance
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Not tested
|
||||
eval $(/var/www/html/occ _completion --generate-hook)
|
||||
|
||||
|
||||
/var/www/html/occ maintenance:repair
|
||||
/var/www/html/occ maintenance:repair --include-expensive
|
||||
|
||||
/var/www/html/occ db:add-missing-indices
|
||||
/var/www/html/occ files:scan --all
|
||||
|
||||
|
||||
occ maintenance:repair --include-expensive
|
||||
@@ -38,10 +38,11 @@ services:
|
||||
- redis
|
||||
deploy:
|
||||
placement:
|
||||
max_replicas_per_node: 1
|
||||
constraints:
|
||||
- node.hostname==odroid
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
@@ -94,6 +95,7 @@ services:
|
||||
- redis
|
||||
deploy:
|
||||
placement:
|
||||
max_replicas_per_node: 1
|
||||
constraints:
|
||||
- node.hostname==odroid
|
||||
mode: replicated
|
||||
@@ -111,7 +113,7 @@ volumes:
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: addr=192.168.1.96
|
||||
device: :/media/DATA/runtime/nextcloud/config
|
||||
device: :/root/volumes/nextcloud_config
|
||||
data:
|
||||
driver: local
|
||||
driver_opts:
|
||||
|
||||
Reference in New Issue
Block a user