I needed some more databases for my setup and also some other containers created from publicly available images. I won’t go into details about this, because this is not specific for the Synology NAS but general Docker configuration. This can be used to set the credentials of the MySQL server. There I usually create a folder per container.Īs a next step it makes sense to configure some environment variables. inside the previously created shared directory. This can be achieved in the volumes section of the dialog where you can create and pick an appropriate folder, e.g. In case of a MySQL database we have to mount the directory /var/lib/mysql inside the container to a directory on the NAS. The next setting is the definition of the volumes to use. Therefore the checkbox needs to be enabled. I want the container to be automatically started. The first setting is related to the restart behavior. Switch to it by clicking on the button for advanced settings. Once it is fully available, select the image from the list and click on launch.Įnter the name you want to use for the new container.įor further configuration like port mappings, volumes, networks etc. Then go to the image section where you will see that the image is being downloaded. Then double-click on the entry in the list and select the desired version of the image. To create one, please open the Docker package, go to the registry section and and search for the image by name. I need several MySQL databases, which should run as Docker containers. Using a dedicated shared folder for persistent volumes will also simplify backups, which we should consider later. I decided to create a dedicated shared folder on the NAS which is used for exactly this purpose.Ĭreating such a shared folder should be pretty straightforward if you own and use a NAS. Installing Docker was of course the most important step.Īs additional preparation I recommend to spend some thoughts on where to store persistent data of the Docker containers. The overview page should appear and show some information about CPU and RAM usage as well as the running Docker containers. Once you installed it, the Docker detail page in the Synology Package Center should look like the screenshot below. #Running calibre server on a nas installSimply open the Synology Package Center, search for Docker and install the package. #Running calibre server on a nas softwareI remembered my colleague, who runs a containerized openHAB instance as his smart home solution on his NAS (for further details on this I recommend you to have a look at his blog post).Īs a software engineer I already used Docker, but I was skeptical if a NAS is sufficient to run multiple containers in parallel.ĭue to the fact that the NAS is permanently up and running, I decided that it’s definitely worth a try. there is no compelling reason to run that outside. This software is only used in my private network, i.e. The more important question was what I would do with some databases and how I could run some web applications I implemented myself. It was no big deal to find a solution for the software development tooling, because there are plenty of Software as a Service offerings which are not too expensive or even for free. Nevertheless it was necessary to think about the migration path from the server to the NAS. I’m convinced that such a system is pretty sufficient for backups and file sharing within my network. Motivation for Docker on the NASīecause I lost the desire to maintain and run my own server at home, I replaced it with a NAS. #Running calibre server on a nas updateIn this post I would like to share my experiences related to the initial setup and the creation of the first containers.Īll explanations are based on a Synology DS218+ NAS running the DSM operating system in version 6.2.2-24922 Update 3. When I replaced this server with a Synology NAS I decided to make use of the Docker capabilities offered. It was used as network file storage, as platform to run some self-developed web applications, as database server, and as host for the software development tooling like Jenkins and others. For some years I operated my own server at home.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |