自建知识库Docker - memos - An open source, self-hosted knowledge base that works with a SQLite db file

date
Aug 30, 2022
slug
newservice-memos
status
Published
summary
新服务 知识管理
tags
service
type
Post
notion image

Summary

步骤

 
export DOCKER_PROJ=memos
export DOCKER_PORT=18500
mkdir /data/$DOCKER_PROJ; cd /data/$DOCKER_PROJ

# docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos neosmemo/memos:latest

cat > docker-compose.yml <<EOF
version: "2.1"
services:
  $DOCKER_PROJ:
    image: neosmemo/memos:latest
    container_name: $DOCKER_PROJ
    restart: unless-stopped
    environment:
      - PUID=0        # 如何查看当前用户的PUIDPGID,直接命令行输入id就行
      - PGID=0
      - TZ=Asia/Hong_Kong
    volumes:
      - ./data:/var/opt/memos
    ports:
      - $DOCKER_PORT:5230
networks:
  default:
    name: npm_nginx_proxy_manager-network
    external: true
EOF

docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f

local cache / cloudflare cache都要关闭,不然安装会有各种问题

CloudFlare设立新的域名

notion image

npm nginx proxy manager配置

 
notion image
notion image
 

和telegram集成 - 20240130

  • 已经native integration
  • botfather,newbot,then save bot id to memos, send /start to bot, save telegram user id to memos.
  • done
notion image
 

验证

notion image
 
 

© Ying Bun 2021 - 2024