File sharing platform Pingvin Share

insert image description here

This article was completed in 2the first ten days of the month. Recently, it happened to be tossing at the request of netizens ClamAV, so I turned it out and posted it together, which can be used as ClamAVan application example of ;

What is Pingvin Share?

Pingvin Shareis a self-hosted file sharing platform and WeTransferan alternative to . With Pingvin Share, there is no limit to the size of files you can share, only your disk is your limit.

If you don't want to build it yourself, you can go to the official demo site: https://pingvin-share.dev.eliasschneider.com

What is ClamAV?

ClamAV®is an open source antivirus engine for detecting Trojans, viruses, malware, and other malicious threats.

Pingvin ShareSupports using ClamAVto scan for malicious files and delete them if found. The official docker-compose.ymlhas this part of the content, Lao Su has uncommented and enabled ClamAVto scan uploaded attachments

Install

Install it in Docker mode on Synology.

Search in the registry pingvin-share, select the first one stonith404/pingvin-share, version selection latest.

When this article was written, latestthe version corresponds to v0.9.0; when the article was published, it has already been v0.15.0, and the interface has also changed. I am too lazy to take screenshots again. Let’s take a look

insert image description here

roll

Inside dockerthe folder, create a new folder pingvin-sharewith a subfolder inside itdata

folder mount path illustrate
docker/pingvin-share/data /opt/app/backend/data Store databases and upload files, etc.

port

It is fine if the local port does not conflict. If you are not sure, you can check it with the command

# 查看端口占用
netstat -tunlp | grep 端口号
local port container port
3040 3000

insert image description here

command line installation

If you are familiar with the command line, it may be docker clifaster to use

# 新建文件夹 pingvin-share 和 子目录
mkdir -p /volume2/docker/pingvin-share/data

# 进入 pingvin-share 目录
cd /volume2/docker/pingvin-share

# 运行容器
docker run -d \
   --restart unless-stopped \
   --name pingvin-share \
   -p 3040:3000 \
   -v $(pwd)/data:/opt/app/backend/data \
   stonith404/pingvin-share:latest

You can also use docker-composethe installation, save the following content as docker-compose.ymla file

The following example has been enabled ClamAV;

version: '3.8'

services:
  pingvin-share:
    image: stonith404/pingvin-share
    container_name: ps-web
    restart: unless-stopped
    ports:
      - 3040:3000
    volumes:
      - "./data:/opt/app/backend/data"
# Optional: If you add ClamAV, uncomment the following to have ClamAV start first.
    depends_on:
      clamav:
        condition: service_healthy

# Optional: Add ClamAV (see README.md)  
# ClamAV is currently only available for AMD64 see https://github.com/Cisco-Talos/clamav/issues/482
  clamav:
    image: clamav/clamav
    container_name: ps-clamav
    restart: unless-stopped
    volumes:
      - "./cdata:/var/lib/clamav"

Then execute the following command

# 新建文件夹 pingvin-share 和 子目录
mkdir -p /volume2/docker/pingvin-share/{
    
    data,cdata}

# 进入 pingvin-share 目录
cd /volume2/docker/pingvin-share

# 将 docker-compose.yml 放入当前目录

# 一键启动
docker-compose up -d

run

Enter in the browser http://群晖IP:3040to see the registration interface

Note: Password cannot be less than 8characters

After logging in, there are still some things that need to be set

APP URLIf it is used in the LAN, it will be used IP. If a reverse proxy is used, the domain name will be used. Lao Su http://localhost:3000changed it tohttp://192.168.0.197:3040

Others can be set as needed, such assmtp

Click Send test email, if there is no problem with the settings, there will be a success prompt in the lower right corner

insert image description here

The main interface is very refreshing

Upload a file to share

point Sharebutton

insert image description here

Click Generateto generate a shared connection, and you can also set the sharing time, password, description, etc.

insert image description here

After the setup is complete, you can send the link to others

reference documents

stonith404/pingvin-share: A self-hosted file sharing platform.
地址:https://github.com/stonith404/pingvin-share

Guess you like

Origin blog.csdn.net/wbsu2004/article/details/131609136