To check that the container is running, open the Container view. To do that, use the same Advanced Settings view, go to Network, and select Use same network as Docker Host:Īpply the changes and create the container. PATH_TO_CONTENT, with a mount path set to /hugotools/site/contentĪssuming you want to get the notes from any devices on your subnet, you need to configure the Docker container to use the same network as the Docker host.PATH_TO_CONFIG_FILE, with a mount path set to /hugotools/site/config.toml.This will open a new wizard, where you should click on Advanced Settings, and then open the Volume tab: Once done, in Docker, go to Image, select the dend/hugo-notes image, and click on Launch. So your first step should be to ensure that you have both the content and config.toml on the NAS. Both can be mounted into the container from the local Synology NAS filesystem. To make sure that the container works properly, it’s important that two pieces are information are available - the Markdown content, and the Hugo configuration file. But worry not, you can still add an image by URL:Īfter the image is downloaded locally, two things need to happen - volume mount setup, and network setup. I should mention that I am not yet sure how quickly Synology pulls the latest image index from whatever registry it’s using - I’ve noticed that after I pushed my own release to Docker Hub, it took a day to get it discoverable through search. I am personally a fan of Docker Hub, and because my image ( dend/hugo-notes) was hosted there, it was natural for me to use it. With Docker set up, it’s possible to quickly jump right to the registry, that acts as an index of available images that you can pull right away.īy default, Synology configured two repositories - Docker Hub ( ) and Aliyun Hub ( ). You can get the latest version of the Docker package from the Synology archives. However, if you are adventurous and know what you are doing, you can manually install the official package. Getting everything ready felt like having a concierge, who did everything for me, and I just looked at it going “Yep, that’s exactly what I wanted.” It just worked.Īs it turns out, not every Synology NAS model officially supports Docker. To set Docker up, all you need to do is install the package - it should not take more than a couple of minutes. The awesome folks at Synology must’ve read my mind, because as I was looking inside their package manager (called Package Center), I discovered that it’s a solved problem:Ĭool! Saves me the time from fiddling with the Terminal and trying to SSH into the box. And because it’s Linux-based, that also means that I can probably run Docker directly on it. It’s dedicated to data storage, but it’s a computer that runs a Linux derivative called DiskStation Manager, or DSM. The cool thing about the Synology NAS is that it’s a mini-computer. I could probably write a script to make this easier, but that would mean that I won’t have as much fun as I would with a Synology NAS. This clearly introduced some overhead and a bit of annoyance when it came to going to the folder where the notes are located in the Terminal, then running Hugo, then waiting for the build to complete - you get it. I even pushed the image to Docker Hub, but I still kept the notes running locally, on my main computer, and would just run Hugo whenever its convenient. The system that I talked about worked quite well as an experiment. Evergreen notes in this context are nothing other than a personal Wikipedia of sorts. At the end of last year, I wrote a blog post about building a simple system to maintain evergreen notes, based on Hugo, Docker, and, well, that’s it - there are only Markdown files in the mix. That is, in addition to all the photo backup stuff it’s already doing. Once this is done, hit "Connect" in the top right and you can access the files on the network drive.Hosting Your Own Notes On Synology NAS With Docker If you have a Synology NAS, you're one step away from having your own notes repository, accessible anywhere on your network.Īs I was fiddling with some automation scenarios at home, I thought of putting the Synology Network Attached Storage (NAS) to good use. The window looks similar to the one below: On the dialog that pops up, enter your account information for the server, then select how it will be remembered by Files. The image below shows a Samba connection to the server :Įnter your username, domain, and password It should open a window similar to the one below:Įnter the address of the server into the box which says "Enter server address." with one of the following prefixes appended to the beginning of the address. Open Files and click on "Other Locations" on the left side overview. If you have a storage location on a network drive, you can easily map the location using Files in Pop!_OS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |