Synology Docker builds its own leanote service

Source: Internet
Author: User
Tags docker hub docker run

Recently engaged in a group of Synology NAS, just want to build their own cloud note service.

Why not use an existing cloud notes platform?

Previously touched cloud notes are mainly Evernote and Youdao cloud notes, each with a very fatal flaw:

Impression notes:

    • Foreign products, due to a variety of non-descriptive factors, functional will have some adjustments (castration);
    • Markdown is not supported.

Youdao Cloud Notes:

    • Many bugs;
    • Domestic this is not too hot or not how to profit products, there will always be a sudden risk of switching off.

Why Choose Leanote?

Now there are a lot of open-source cloud notebook software, Google on a search a lot, choose Leanote main or reason:

    • Prior to working with one of the Leanote team members, what problems encountered relatively convenient consultation;
    • Leanote has a function that basically covers my needs;
    • Word of mouth seems to be possible.

Building Services

Now that you've chosen Leanote, start building.

Leanote backend services require a golang environment and need to introduce (import) some third-party packages. Because Golang package Management service is need to turn over the wall, if you want to follow the official instructions of the leanote to build the service, we must first deal with the problem of the group Hui turn the wall.

In order to quickly build leanote services, it is natural not to use this way of comparison and toss.

In fact, a lot of people have built a docker image, directly with Docker mirroring way, certainly convenient and fast (after all, others have been configured well).

Search Leanote in the registry of the Synology Docker (the Registry's repository is set to Docker Hub), you can see that there are some images (note: The image is translated into an image in the Synology Docker suite):

Docker leanote Images

Looking at the image details, you can see that the first one in the search results should be the Leanote official build image, but it's already deprecated, so we have to look for other mirrors.

When selecting the image, be aware of the following information:

    • Try to be new, that is, the last push time not too long, so as to ensure the use of relatively new leanote;
    • Leanote version number to ensure that the Leanote version used is new enough;
    • Directory mount and port mapping, this is the main docker run command.

In the end, I chose axboy/leanote .

After the selection, click on the email to download:

Download Leanote image

After the download is complete, you can 映像 see the image file in:

Image

Click the left mouse button to select the downloaded image, then click on the "Start" button in the upper left corner to start the "Configure and run" Image:

Image

The name of the container, take a rough look at it. Click "Advanced Settings":

Image

Mainly configure the "volume" and "Port settings", these two configuration information, in the image description document is described:

Image

Follow docker run the command's parameters to configure the line.

Once configured, click on the "Apply button" in the bottom right corner and the configuration will take effect.

Then click "Next", there will be an interface showing the configuration information just now:

Image

After confirming the configuration information, click on the "Start" button to start the execution of the boot.

At this point, the service was built successfully.

Site initialization

After the service is successfully built, it can be http://[群晖服务器 IP 地址]:9000 accessed in a way.

Note that the site has a super administrator, for security, to reset the password:

Image

Support for external network access

Leanote is a support blog, so we have to allow our services to support extranet access, others can see our written articles.

Assuming that you can now access the Synology host on the LAN through the DDNS service provided by Synology, and the domain name is: test.synology.me (about how to configure the extranet domain name, will be explained in another article), then the only thing to do now is to map the port number of the router to the Synology host 9000 port (assuming that the host port number configured when the Docker container is started is 9000).

Open the router configuration, external access, control Panel, and so on:

Image

Click on the "new" button to add a custom port mapping:

Imageimage

After filling out, click "Apply", go back to "router configuration" screen, then click on the "Save" button on the line to write the configuration to the router.

If there is no error in the middle, then you can access the Leanote service in the browser via the following URL:

http://test.synology.me:9000

IOS Client

Leanote official client tools are configurable to access the built-in Leanote service, so just mention the IOS client here, and the rest are similar.

To the App Store to download the client software, and then open the software, you can see a small line at the bottom of the word "add self-built services":

Image

After clicking "Add Custom Service", come up with a "self-built server address" input box:

Image

Enter it in the input box http://test.synology.me:9000 , and the other two are the account passwords registered on the website.

Original address

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.