自建知识库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
Summary步骤local cache / cloudflare cache都要关闭,不然安装会有各种问题CloudFlare设立新的域名npm nginx proxy manager配置和telegram集成 - 20240130验证
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 # 如何查看当前用户的PUID和PGID,直接命令行输入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设立新的域名
npm nginx proxy manager配置
和telegram集成 - 20240130
- 已经native integration
- botfather,newbot,then save bot id to memos, send /start to bot, save telegram user id to memos.
- done