move seafile to nfs

This commit is contained in:
Pim Kunis 2023-06-19 20:17:17 +02:00
parent 69360cb0a7
commit c2386a17a2
2 changed files with 24 additions and 4 deletions

View file

@ -18,6 +18,10 @@ nfs_shares:
path: /mnt/data/hedgedoc/uploads
- name: traefik_acme
path: /mnt/data/traefik/acme
- name: seafile_data
path: /mnt/data/seafile/data
- name: seafile_db
path: /mnt/data/seafile/db
database_passwords:
nextcloud: !vault |

View file

@ -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 }}