move seafile to nfs
This commit is contained in:
parent
69360cb0a7
commit
c2386a17a2
2 changed files with 24 additions and 4 deletions
|
@ -6,6 +6,18 @@ networks:
|
|||
external: true
|
||||
seafile:
|
||||
|
||||
volumes:
|
||||
data:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=192.168.30.10,nolock,soft,rw"
|
||||
device: ":/mnt/data/seafile/data"
|
||||
db:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=192.168.30.10,nolock,soft,rw"
|
||||
device: ":/mnt/data/seafile/db"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:10.5
|
||||
|
@ -13,9 +25,11 @@ services:
|
|||
- MYSQL_ROOT_PASSWORD={{ db_root_passwd }}
|
||||
- MYSQL_LOG_CONSOLE=true
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /mnt/data/seafile/db
|
||||
- type: volume
|
||||
source: db
|
||||
target: /var/lib/mysql
|
||||
volume:
|
||||
nocopy: true
|
||||
networks:
|
||||
- seafile
|
||||
deploy:
|
||||
|
@ -36,9 +50,11 @@ services:
|
|||
seafile:
|
||||
image: seafileltd/seafile-mc:9.0.10
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /mnt/data/seafile/data
|
||||
- type: volume
|
||||
source: data
|
||||
target: /shared
|
||||
volume:
|
||||
nocopy: true
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_ROOT_PASSWD={{ db_root_passwd }}
|
||||
|
|
Reference in a new issue