What is Note Mark
Note Mark
is a lightweight, fast, minimalistic, web-basedMarkdown
note-taking application. Has a sleek and responsive web user interface.
Install
Install it in Docker mode on Synology.
ghcr.io mirror download
The official image is not published in docker hub
, but in ghcr.io
, so install it directly with the command line
Mirroring is divided into frontends
and backend two mirrors
Execute the following commands in sequence in SSH
the client
# 下载前端镜像
docker pull ghcr.io/enchant97/note-mark-frontend:0.6.0-alpha
# 下载后端镜像
docker pull ghcr.io/enchant97/note-mark-backend:0.6.0-alpha
If you do not surf the Internet scientifically, you may not be able to pull it. You can try docker
the proxy website: https://dockerproxy.com/ , but there will be a few more steps
# ----下载前端镜像----
## 如果拉不动的话加个代理
docker pull ghcr.dockerproxy.com/enchant97/note-mark-frontend:0.6.0-alpha
## 重命名镜像(如果是通过代理下载的)
docker tag ghcr.dockerproxy.com/enchant97/note-mark-frontend:0.6.0-alpha ghcr.io/enchant97/note-mark-frontend:0.6.0-alpha
## 删除代理镜像(如果是通过代理下载的)
docker rmi ghcr.dockerproxy.com/enchant97/note-mark-frontend:0.6.0-alpha
# ----下载后端镜像----
## 如果拉不动的话加个代理
docker pull ghcr.dockerproxy.com/enchant97/note-mark-backend:0.6.0-alpha
## 重命名镜像(如果是通过代理下载的)
docker tag ghcr.dockerproxy.com/enchant97/note-mark-backend:0.6.0-alpha ghcr.io/enchant97/note-mark-backend:0.6.0-alpha
## 删除代理镜像(如果是通过代理下载的)
docker rmi ghcr.dockerproxy.com/enchant97/note-mark-backend:0.6.0-alpha
Once the download is complete, you can see it 映象
in
nginx.conf
Save the following content as nginx.conf
a file
upstream backend {
server backend:8000;
}
upstream frontend {
server frontend:8080;
}
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://frontend;
}
location /api {
proxy_pass http://backend/api;
}
}
docker-compose install
Save the following content as docker-compose.yml
a file
version: "3"
services:
backend:
image: ghcr.io/enchant97/note-mark-backend:0.6.0-alpha
container_name:note-mark-backend
restart: unless-stopped
volumes:
- ./data:/data
environment:
JWT_SECRET: "mRLxVp/4k8QNLNt2WNuuKBHY5HiYrOtIMqvpM0Wg0wM="
frontend:
image: ghcr.io/enchant97/note-mark-frontend:0.6.0-alpha
container_name:note-mark-frontend
restart: unless-stopped
proxy:
image: nginx:alpine
container_name:note-mark-web
restart: unless-stopped
ports:
- 8381:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
JWT_SECRET
: can be generatedopenssl rand -base64 32
with
For more environment variables, you can see the official documentation: https://github.com/enchant97/note-mark/blob/main/docs/deploy.md#configuration
Then execute the following commands in sequence
# 新建文件夹 note-mark 和 子目录
mkdir -p /volume2/docker/note-mark/data
# 进入 note-mark 目录
cd /volume2/docker/note-mark
# 将 nginx.conf 和 docker-compose.yml 放入当前目录
# 一键启动
docker-compose up -d
run
Enter in the browser http://群晖IP:8381
to see the main interface
Click login
--> need an account?
--> create user
to create an account
The main interface after login
First create a notebook ( notebook
)
then create note( note
)
You can enter the editing state through Edit
the switch
or preview status
reference documents
enchant97/note-mark: Note Mark is a lighting fast and minimal; web-based Markdown notes app.
地址:https://github.com/enchant97/note-mark