-
Notifications
You must be signed in to change notification settings - Fork 1
/
mergerfs.yml
40 lines (40 loc) · 1.05 KB
/
mergerfs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
# MergerFS - A featureful union filesystem
mergerfs:
container_name: mergerfs
hostname: mergerfs
image: hotio/mergerfs:latest
restart: always
# depends_on:
# - gdrive # if using rclone
# - gcrypt # if using rclone
user: $PUID:$PGID
command: "/data/media1:/data/media2 \
/data/media \
-o rw,\
use_ino,\
allow_other,\
func.getattr=newest,\
category.action=all,\
category.create=ff,\
statfs_ignore=nc,\
cache.files=auto-full,\
func.getattr=newest,\
dropcacheonclose=true,\
nonempty"
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse
environment:
- TZ=$TZ
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- /etc/fuse.conf:/etc/fuse.conf:shared
#- $DATADIR:/data:slave # creates local-media and shb-media on host
- $DATADIR1/test:/data/media1:rshared
- $DATADIR2/test:/data/media2:rshared
- $DATADIR1/mnt/media:/data/media:rshared