域名已变更 请手动修改文章中域名指向carlzeng.com

Docker搭建轻量个人文件分享服务-文件传输自由

临时小文件分享,远程文件传输,自建网盘

开放文件临时分享:https://cn.carlzeng.top/fileupd

2024.1.2 转化方案到Alist

有什么用

临时小文件分享,远程文件传输,脱离网盘

怎么用

Docker搭建轻量个人文件分享服务-文件传输自由

专注于文件分享的高颜值轻量小工具
A self-hosted file sharing platform that combines lightness and beauty, perfect for seamless and efficient file sharing.

预览

相关内容

实现方法

version: '3.8'
services:
  pingvin-share:
    image: stonith404/pingvin-share
    restart: unless-stopped
    ports:
      - 6000:3000
      - 6001:3333
    volumes:
      - "./data:/opt/app/backend/data"
      - "./data/images:/opt/app/frontend/public/img"
      # - "./data/framework-0c7baedefba6b077.js:/opt/app/frontend/.next/static/chunks/framework-0c7baedefba6b077.js" #个人用于添加matomo统计JS

上面完成端口映射,不知道怎么回事8080端口映射出来是无法访问的。(原来文档有误,看日志,应该是3333端口); 后来又发现只有这个6001也是能正常能使用的(符合日志内容)

开放防火墙允许访问映射出来的端口。

部分日志:

Attaching to pingvin-share_pingvin-share_1
pingvin-share_1  | 
pingvin-share_1  | > pingvin-share-backend@0.21.1 prod
pingvin-share_1  | > prisma migrate deploy && prisma db seed && node dist/src/main
pingvin-share_1  | 
pingvin-share_1  | Environment variables loaded from prisma/.env
pingvin-share_1  | Prisma schema loaded from prisma/schema.prisma
pingvin-share_1  | Datasource "db": SQLite database "pingvin-share.db" at "file:../data/pingvin-share.db"
pingvin-share_1  | 
pingvin-share_1  | 17 migrations found in prisma/migrations
pingvin-share_1  | 
pingvin-share_1  | 
pingvin-share_1  | No pending migrations to apply.
pingvin-share_1  |   ▲ Next.js 13.5.6
pingvin-share_1  |   - Local:        http://localhost:3333
pingvin-share_1  |   - Network:      http://0.0.0.0:3333
pingvin-share_1  | 
pingvin-share_1  |  ✓ Ready in 3.9s
pingvin-share_1  | Environment variables loaded from prisma/.env
pingvin-share_1  | Running seed command `ts-node prisma/seed/config.seed.ts` ...
pingvin-share_1  | 
pingvin-share_1  | 🌱  The seed command has been executed.
pingvin-share_1  | ┌─────────────────────────────────────────────────────────┐
pingvin-share_1  | │  Update available 5.0.0 -> 5.7.1                        │
pingvin-share_1  | │  Run the following to update                            │
pingvin-share_1  | │    npm i --save-dev prisma@latest                       │
pingvin-share_1  | │    npm i @prisma/client@latest                          │
pingvin-share_1  | └─────────────────────────────────────────────────────────┘
pingvin-share_1  | [Nest] 34  - 12/23/2023, 3:03:35 AM     LOG [NestFactory] Starting Nest application...
pingvin-share_1  | [Nest] 34  - 12/23/2023, 3:03:35 AM     LOG [InstanceLoader] PrismaModule dependencies initialized +230ms

发布到NAS中

思路是:NAS中硬盘比较大,方便直接做分享,也不用太担心磁盘轻易被塞满的问题。

ssh shell进群晖NAS,想要找到docker的类似于BT中的预览Docker Container文件目录的办法,一直找不到具体文件路径。

> root@DS918:/var/packages/Docker/var/docker/containers# ls                                        
086decff0f0ff981d6458d792b6d4f2efe96a0a16cc339b0963c8e319c8917b5                                 
2ea60beefe6d9bab1a3910785a310bac528723055c7004f3d15eb55a07abfd70

> root@DS918:/var/packages/Docker/var/docker/

暂时没办法,只能在BT中配置好,测试好以后,把映射的文件都挪到群晖NAS中去.

  1. 先将映射出来的文件都复制到NAS的个人特定文件夹下

    > scp -r /www/server/panel/data/compose/pingvin-share/data/ CarlNote@192.168.6.203:/volume2/KingchuxingSSD512G/docker/pingvin-shar.........
    

继续阅读

请点击访问最新版内容

posted @ 2024-01-03 21:54  CarlZeng  阅读(211)  评论(0编辑  收藏  举报
域名已变更 请手动修改文章中域名指向carlzeng.com