move mastodon files to nfs

This commit is contained in:
Pim Kunis 2023-06-22 13:32:58 +02:00
parent c2386a17a2
commit 5bc4aef6db
2 changed files with 23 additions and 4 deletions

View file

@ -22,6 +22,8 @@ nfs_shares:
path: /mnt/data/seafile/data path: /mnt/data/seafile/data
- name: seafile_db - name: seafile_db
path: /mnt/data/seafile/db path: /mnt/data/seafile/db
- name: mastodon_system
path: /mnt/data/mastodon/system
database_passwords: database_passwords:
nextcloud: !vault | nextcloud: !vault |
@ -40,3 +42,11 @@ database_passwords:
3533666462303563360a313233306335396234393932396331313238376464363964363839396164 3533666462303563360a313233306335396234393932396331313238376464363964363839396164
66366662356135343035363935616664613831626131376330643133313530636431613266636165 66366662356135343035363935616664613831626131376330643133313530636431613266636165
6265613666616164373637356235396165383662333561393939 6265613666616164373637356235396165383662333561393939
mastodon: !vault |
$ANSIBLE_VAULT;1.1;AES256
63616366396665663161376161373735626466353464393963333136336335376662326232613639
6166333137376131633761623163306165386562666639640a313136386431373161306331626638
34643433396232383962643964386631313632393161316261353331346163333261336666646563
6232666231653732630a396638396462323464613033306662313463663262626430363432663465
63623935303861663565633739363539326435623561396535623034663735373232336633303037
6266323136316238343963613332396261346337646264646162

View file

@ -8,6 +8,11 @@ networks:
volumes: volumes:
cache: cache:
system:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/mastodon/system"
services: services:
db: db:
@ -73,9 +78,11 @@ services:
- db - db
- redis - redis
volumes: volumes:
- type: bind - type: volume
source: /mnt/data/mastodon/public/system source: system
target: /mastodon/public/system target: /mastodon/public/system
volume:
nocopy: true
- cache:/mastodon/public/system/cache - cache:/mastodon/public/system/cache
deploy: deploy:
placement: placement:
@ -134,9 +141,11 @@ services:
networks: networks:
- mastodon - mastodon
volumes: volumes:
- type: bind - type: volume
source: /mnt/data/mastodon/public/system source: system
target: /mastodon/public/system target: /mastodon/public/system
volume:
nocopy: true
- cache:/mastodon/public/system/cache - cache:/mastodon/public/system/cache
healthcheck: healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"] test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]