-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
50 lines (49 loc) · 1.16 KB
/
docker-compose.yaml
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
41
42
43
44
45
46
47
48
49
50
#
services:
mount:
image: rclone/rclone:1.67
volumes:
- ./conf/rclone/rclone.conf:/config/rclone/rclone.conf
- ./data:/data:shared
devices:
- /dev/fuse:/dev/fuse:rwm
command: >
mount -v
--cache-dir /data/cache
--dir-cache-time 1m
--vfs-cache-mode full
--vfs-cache-max-age 168h
--allow-non-empty
--allow-other
--use-mmap=true
--vfs-cache-min-free-space 5G
sbox:s4 /data/s3
privileged: true
s3:
image: chrislusf/seaweedfs:3.69
ports:
- 9333:9333
- 8090:8090
- 8888:8888
- 19888:19888
- 8333:8333
- 7333:7333
volumes:
- ./conf/seaweedfs/filer.toml:/etc/seaweedfs/filer.toml
- ./conf/seaweedfs/s3.json:/etc/seaweedfs/s3.json
- ./data:/data:shared
entrypoint: /bin/ash
command: >
-c
"sleep 5 &&
weed server
-dir=/data/s3
-s3
-s3.config /etc/seaweedfs/s3.json
-master.volumeSizeLimitMB 1024
-volume.max 0 -
volume.port 8090
-s3.allowEmptyFolder false
-s3.allowDeleteBucketNotEmpty true"
depends_on:
- mount