Markdown note application Note Mark

insert image description here

What is Note Mark

Note Markis a lightweight, fast, minimalistic, web-based Markdownnote-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 SSHthe 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 dockerthe 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

insert image description here

nginx.conf

Save the following content as nginx.confa 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.ymla 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 generated openssl rand -base64 32with

insert image description here

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:8381to see the main interface

Click login--> need an account?--> create userto create an account

The main interface after login

insert image description here

First create a notebook ( notebook)

then create note( note)

You can enter the editing state through Editthe switch

insert image description here

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

Guess you like

Origin blog.csdn.net/wbsu2004/article/details/130999470