Skip to content

Commit

Permalink
Add dufs
Browse files Browse the repository at this point in the history
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
  • Loading branch information
bensuperpc committed Sep 2, 2024
1 parent 4dc0d9f commit 0745869
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
DOCKER := docker

TORRENTS_SERVICES := qbittorrent transmission
SHARING_SERVICES := psitransfer picoshare privatebin projectsend jellyfin
SHARING_SERVICES := psitransfer picoshare privatebin projectsend jellyfin dufs
ADMIN_SERVICES := yacht uptime-kuma adminer
UTILS_SERVICES := it-tools
# stirlingpdf

PROFILES := caddy wordpress syncthing gitea homepage $(SHARING_SERVICES) $(TORRENTS_SERVICES) $(ADMIN_SERVICES) $(UTILS_SERVICES)
PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
Expand Down
4 changes: 4 additions & 0 deletions infrastructure/caddy/config/bensuperpc.org/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ projectsend.bensuperpc.org {
reverse_proxy projectsend:80
}

dufs.bensuperpc.org {
reverse_proxy dufs:5000
}

link.bensuperpc.org {
# TODO: Use service with database
# Friendly links
Expand Down
31 changes: 31 additions & 0 deletions infrastructure/dufs/docker-compose.dufs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
services:
# dufs
dufs:
image: sigoden/dufs:latest
container_name: dufs
profiles:
- dufs
restart: on-failure:5
depends_on:
- caddy
env_file:
- ./dufs/env/dufs.env
volumes:
- dufs_data:/data
networks:
- infra-network
security_opt:
- no-new-privileges:true
read_only: false
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M

volumes:
dufs_data:
name: dufs_data
10 changes: 10 additions & 0 deletions infrastructure/dufs/env/dufs.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DUFS_BIND=0.0.0.0
DUFS_PORT=5000
DUFS_SERVE_PATH=/data
DUFS_HIDDEN=tmp,*.log,*.lock
#DUFS_ALLOW_ALL=true
DUFS_ALLOW_SEARCH=true
DUFS_ALLOW_SYMLINK=false
DUFS_ALLOW_ARCHIVE=true
DUFS_COMPRESS=medium
DUFS_AUTH="admin:heqihlOfBmJDESGFlpbPi7P7Mi6F7RkV@/data:rw"
6 changes: 6 additions & 0 deletions infrastructure/homepage/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
description: ProjectSend
ping: projectsend.bensuperpc.org
container: projectsend
- dufs:
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/dufs.png
href: https://dufs.bensuperpc.org/
description: Dufs
ping: dufs.bensuperpc.org
container: dufs

- Utils:
- it-tools:
Expand Down

0 comments on commit 0745869

Please sign in to comment.