This article was completed in
2
the first ten days of the month. Recently, it happened to be tossing at the request of netizensClamAV
, so I turned it out and posted it together, which can be used asClamAV
an application example of ;
What is Pingvin Share?
Pingvin Share
is a self-hosted file sharing platform andWeTransfer
an alternative to . WithPingvin 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 Share
Supports using ClamAV
to scan for malicious files and delete them if found. The official docker-compose.yml
has this part of the content, Lao Su has uncommented and enabled ClamAV
to 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,
latest
the version corresponds tov0.9.0
; when the article was published, it has already beenv0.15.0
, and the interface has also changed. I am too lazy to take screenshots again. Let’s take a look
roll
Inside docker
the folder, create a new folder pingvin-share
with 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 |
command line installation
If you are familiar with the command line, it may be docker cli
faster 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-compose
the installation, save the following content as docker-compose.yml
a 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:3040
to see the registration interface
Note: Password cannot be less than
8
characters
After logging in, there are still some things that need to be set
APP URL
If 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:3000
changed 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
The main interface is very refreshing
Upload a file to share
point Share
button
Click Generate
to generate a shared connection, and you can also set the sharing time, password, description, etc.
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