add(dufs): add dufs stack
This commit is contained in:
parent
4ce58efd24
commit
340cd75ac0
26
dufs/config/config.yaml
Normal file
26
dufs/config/config.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
serve-path: '.'
|
||||
bind: 0.0.0.0
|
||||
port: 5000
|
||||
path-prefix: /dufs
|
||||
hidden:
|
||||
- tmp
|
||||
- '*.log'
|
||||
- '*.lock'
|
||||
auth:
|
||||
- admin:admin@/:rw
|
||||
- user:pass@/src:rw,/share
|
||||
- '@/' # According to the YAML spec, quoting is required.
|
||||
allow-all: false
|
||||
allow-upload: true
|
||||
allow-delete: true
|
||||
allow-search: true
|
||||
allow-symlink: true
|
||||
allow-archive: true
|
||||
enable-cors: true
|
||||
render-index: true
|
||||
render-try-index: true
|
||||
render-spa: true
|
||||
assets: ./assets/
|
||||
log-format: '$remote_addr "$request" $status $http_user_agent'
|
||||
log-file: ./dufs.log
|
||||
compress: low
|
2
dufs/env.cfg
Normal file
2
dufs/env.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
IMAGE_TAG=sigoden/dufs:v0.43.0
|
||||
Volumes_Path=/data/volumes/dufs
|
20
dufs/stack.yml
Normal file
20
dufs/stack.yml
Normal file
@ -0,0 +1,20 @@
|
||||
# path:: mkdir -pv /data/volumes/dufs/data
|
||||
# pull:: docker compose -p memos --env-file ./dufs/env.cfg -f ./dufs/stack.yml pull
|
||||
# run:: docker compose -p memos --env-file ./dufs/env.cfg -f ./dufs/stack.yml up -d
|
||||
|
||||
services:
|
||||
dufs:
|
||||
image: ${IMAGE_TAG}
|
||||
container_name: dufs
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
ports:
|
||||
- 5000:5000
|
||||
command: /data --config /config/config.yaml
|
||||
volumes:
|
||||
- ${Volumes_Path}/data:/data
|
||||
- ./config:/config
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: unless-stopped
|
||||
|
Loading…
x
Reference in New Issue
Block a user