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
(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
teedy預設檔案加密,但這樣反而不方便直接掛載修改檔案
teedy預設檔案加密,這樣很安全,但這樣反而不方便直接修改檔案;有些文管人員,只知道檔案總管,因此有必要掛載讓文員直接修改,所以我改程式,讓系統可以不加密,直接掛載修改。
#此分支可設定加密或不加密
#一旦加密,就不可再改設定,請謹慎
https://github.com/WilliamFromTW/teedydocs/tree/EncryptFileOptional
# 以下編譯好的war檔案(檔案不加密),取代官方docker裡面的war檔案重啟就可以了
https://github.com/WilliamFromTW/teedydocs/tree/EncryptFileOptional/build