diff --git a/Makefile b/Makefile index c9456be..add6d58 100644 --- a/Makefile +++ b/Makefile @@ -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)) diff --git a/infrastructure/caddy/config/bensuperpc.org/Caddyfile b/infrastructure/caddy/config/bensuperpc.org/Caddyfile index 451bb46..386fb67 100644 --- a/infrastructure/caddy/config/bensuperpc.org/Caddyfile +++ b/infrastructure/caddy/config/bensuperpc.org/Caddyfile @@ -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 diff --git a/infrastructure/dufs/docker-compose.dufs.yml b/infrastructure/dufs/docker-compose.dufs.yml new file mode 100644 index 0000000..01db5c2 --- /dev/null +++ b/infrastructure/dufs/docker-compose.dufs.yml @@ -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 \ No newline at end of file diff --git a/infrastructure/dufs/env/dufs.env b/infrastructure/dufs/env/dufs.env new file mode 100644 index 0000000..f3f0dcd --- /dev/null +++ b/infrastructure/dufs/env/dufs.env @@ -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" diff --git a/infrastructure/homepage/config/services.yaml b/infrastructure/homepage/config/services.yaml index 2f09480..e9f0738 100644 --- a/infrastructure/homepage/config/services.yaml +++ b/infrastructure/homepage/config/services.yaml @@ -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: