安裝 FormosaBearV 文管軟體

這是一款很棒的軟體,由 https://github.com/sismics/docs 分支後,改名 FormosaBearV 專案。
系統以文件為主,文件具有唯一性,可以包含多檔案;文件能同時出現在不同目錄結構(使用Tag),此舉可避免傳統檔案總管,相同文件在不同目錄出現,造成版本維護困難的情形。

推坑

此系統強調以文件為本,文件可包含很多檔案,且具唯一性,能綁定多個標籤。

開發團隊很奇才利用標籤,就能模擬出不同目錄結構,因此一個唯一性的文件,能出現在不同的目錄,本體只有一個,我們只要維護一次文件即可。

此舉可避免傳統檔案總管,相同文件若需要在不同目錄出現,就必須複製多份,一旦文件改版更新了,會造成檔案更新困難。

標籤 V.S 檔案總管

drawing-1-1737389515.png

另外teedy系統,也有送審功能,讓其他使用者提交文件,給文件管理員審查、上架

docker安裝

docker安裝

(1)官方安裝範本

根據官網建議,使用docker容器安裝最適合

以下是docker-compose.yml

version: '3'
services:
# Teedy Application
  teedy-server:
    image: sismics/docs:latest
    restart: unless-stopped
    ports:
      # Map internal port to host
      - 8080:8080
    environment:
      # Base url to be used
      DOCS_BASE_URL: "https://docs.example.com"
      # Set the admin email
      DOCS_ADMIN_EMAIL_INIT: "admin@example.com"
      # Set the admin password (in this example: "superSecure")
      DOCS_ADMIN_PASSWORD_INIT: "$$2a$$05$$PcMNUbJvsk7QHFSfEIDaIOjk1VI9/E7IPjTKx.jkjPxkx2EOKSoPS"
      # Setup the database connection. "teedy-db" is the hostname
      # and "teedy" is the name of the database the application
      # will connect to.
      DATABASE_URL: "jdbc:postgresql://teedy-db:5432/teedy"
      DATABASE_USER: "teedy_db_user"
      DATABASE_PASSWORD: "teedy_db_password"
      DATABASE_POOL_SIZE: "10"
    volumes:
      - ./docs/data:/data
    networks:
      - docker-internal
      - internet
    depends_on:
      - teedy-db

# DB for Teedy
  teedy-db:
    image: postgres:13.1-alpine
    restart: unless-stopped
    expose:
      - 5432
    environment:
      POSTGRES_USER: "teedy_db_user"
      POSTGRES_PASSWORD: "teedy_db_password"
      POSTGRES_DB: "teedy"
    volumes:
      - ./docs/db:/var/lib/postgresql/data
    networks:
      - docker-internal

networks:
  # Network without internet access. The db does not need
  # access to the host network.
  docker-internal:
    driver: bridge
    internal: true
  internet:
    driver: bridge

docker安裝

(2)本站建議的安裝

建議與OpenProject專案管理系統共用一個資料庫,拙認為OpenProject(追蹤進度)+teedy(文件管理) 可以解決公司很多內部文件管控問題

以下範本,請注意ports、DOCS_BASE_URL、DOCS_ADMIN_EMAIL_INIT、DATABASE_URL、DATABASE_USER、DATABASE_PASSWORD

version: '3'
services:
  teedy-server:
    image: sismics/docs:latest
    restart: unless-stopped
    ports:
      - 8080:8080
    environment:
      # DOCS_BCRYPT_WORK: 5
      # Base url to be used
      DOCS_BASE_URL: "https://網站名稱"
      # Set the admin email
      DOCS_ADMIN_EMAIL_INIT: "電子郵件@xxx.xxx"
      # Set the admin password (in this example: "superSecure")
      DOCS_ADMIN_PASSWORD_INIT: "$$2a$$05$$PcMNUbJvsk7QHFSfEIDaIOjk1VI9/E7IPjTKx.jkjPxkx2EOKSoPS"
      # Setup the database connection. "teedy-db" is the hostname
      # and "teedy" is the name of the database the application
      # will connect to.
      DATABASE_URL: "jdbc:postgresql://資料庫IP:5432/teedy"
      DATABASE_USER: "資料庫帳號"
      DATABASE_PASSWORD: "資料庫密碼"
      DATABASE_POOL_SIZE: "10"
    volumes:
      - ./docs/data:/data
        #- ./webapps:/opt/jetty/webapps
    networks:
      - docker-internal
      - internet


networks:
  # Network without internet access. The db does not need
  # access to the host network.
  docker-internal:
    driver: bridge
    internal: true
  internet:
    driver: bridge