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 path: /mnt/data/hedgedoc/uploads
- name: traefik_acme - name: traefik_acme
path: /mnt/data/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: database_passwords:
nextcloud: !vault | nextcloud: !vault |

View file

@ -6,6 +6,18 @@ networks:
external: true external: true
seafile: 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: services:
db: db:
image: mariadb:10.5 image: mariadb:10.5
@ -13,9 +25,11 @@ services:
- MYSQL_ROOT_PASSWORD={{ db_root_passwd }} - MYSQL_ROOT_PASSWORD={{ db_root_passwd }}
- MYSQL_LOG_CONSOLE=true - MYSQL_LOG_CONSOLE=true
volumes: volumes:
- type: bind - type: volume
source: /mnt/data/seafile/db source: db
target: /var/lib/mysql target: /var/lib/mysql
volume:
nocopy: true
networks: networks:
- seafile - seafile
deploy: deploy:
@ -36,9 +50,11 @@ services:
seafile: seafile:
image: seafileltd/seafile-mc:9.0.10 image: seafileltd/seafile-mc:9.0.10
volumes: volumes:
- type: bind - type: volume
source: /mnt/data/seafile/data source: data
target: /shared target: /shared
volume:
nocopy: true
environment: environment:
- DB_HOST=db - DB_HOST=db
- DB_ROOT_PASSWD={{ db_root_passwd }} - DB_ROOT_PASSWD={{ db_root_passwd }}