forked from javi11/altmount
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.volume-plugin.example
More file actions
37 lines (36 loc) · 1.11 KB
/
docker-compose.volume-plugin.example
File metadata and controls
37 lines (36 loc) · 1.11 KB
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
services:
altmount:
extra_hosts:
- "host.docker.internal:host-gateway" # Optional if you rclone is outside the container
image: ghcr.io/javi11/altmount:latest
container_name: altmount
environment:
- PUID=1000
- PGID=1000
- PORT=8080
- COOKIE_DOMAIN=localhost # Must match the domain/IP where web interface is accessed
volumes:
- ./config:/config
- /var/run/docker.sock:/var/run/docker.sock # Required for the auto-update feature
group_add:
- "999" # GID of the docker group on the host (run `getent group docker | cut -d: -f3` to find yours)
ports:
- "8080:8080"
restart: unless-stopped
volumes:
altmount:
driver: rclone # Make sure you have the rclone volume plugin installed
driver_opts:
remote: 'altmount:'
uid: 1000
gid: 1000
async_read: "true"
allow_non_empty: "true"
allow_other: "true"
vfs_read_ahead: 128M
vfs_read_chunk_size: 32M
vfs_read_chunk_size_limit: 2G
vfs_cache_mode: full
vfs_cache_max_age: 504h
vfs_cache_max_size: 50G
dir_cache_time: 10m