Simple, Clean, Ad-Free Niche Free Note-taking App: Self-built Tutorial for Flatnotes on NAS

There are countless note-taking apps, such as Apple Notes, Evernote, Obsidian, Notion… even WeChat’s file transfer assistant.

Alt text
Pic

They all have their own advantages and disadvantages:

  • Slow speed and requires internet connection (Notion)
  • Built-in note app on smartphones (does not support Markdown, not suitable for long texts)
  • Bulky and data stored in the cloud (Notion, Evernote)
  • Unable to record notes anytime (Evernote)

Today’s protagonist is Flatnotes, which is simple, focused, privately hosted, with dual editors for Markdown and rich text, and full-text search.


  • Flatnotes is a powerful and simple, focused note-taking app.

    It provides both raw Markdown editing mode and WYSIWYG (What You See Is What You Get) Markdown editing mode.

    Alt text
    Pic

    With Flatnotes’ advanced search feature, you can easily find your notes without manually searching through a large number of notes.

    Alt text
    Pic

    With the tagging feature, you can better organize and categorize your notes. Simply add one or more tags to easily find specific notes.

    Alt text
    Pic

    Alt text
    Pic

    Flatnotes offers both light and dark themes to suit your preferences and keep your eyes comfortable even after long-term use.

    Alt text
    Pic


Let’s set it up step by step:

Follow for free to stay on track

Tutorial reference: 30-second Installation of Portainer, a Must-have Tool for NAS

Open File Station and create a flatnotes folder in the Docker folder.

Alt text
Pic

Alt text
Pic

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
version: "3"

services:
  flatnotes:
    container_name: flatnotes
    image: dullage/flatnotes:latest
    environment:
      FLATNOTES_AUTH_TYPE: "password" # Password mode (optional: None for no password, TOTP)
      FLATNOTES_USERNAME: "user"
      FLATNOTES_PASSWORD: "changeMe!" # Password can be modified
      FLATNOTES_SECRET_KEY: "aLongRandomSeriesOfCharacters"
    volumes:
      - "/volume1/docker/flatnotes:/app/data"
      # - "./index:/app/data/.flatnotes"  
      # Optional: specify the existing note directory
    ports:
      - "13326:8080" # Custom port, use a port different from others
    restart: unless-stopped
  1. Select Stack
  2. Enter “flatnotes” in the name field
  3. Enter the above code in the editor
  4. Click deploy

Alt text
Pic

  1. Open the program in your browser: [ip]:[port]

The IP address for your NAS is the IP address where your NAS is located (in this case, mine is 172.16.23.106), and the port is defined in the configuration file above. If you followed my tutorial, it would be 13326.

Alt text
Pic

Alt text
Pic

If you liked this article, please remember to like, bookmark, and follow Dad’s Digital Garden. We will continue to bring you more practical self-built application guides. Together, let’s take control of our own data and create our own digital world!

If you encounter any problems during the setup process or have any suggestions, please feel free to leave a comment below. Let’s explore and learn together.