Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
omv7:docker_in_omv [2024/09/07 15:18] – [2. Plugin Settings] chente | omv7:docker_in_omv [2025/01/09 15:53] (current) – [2. Plugin Settings] chente | ||
---|---|---|---|
Line 152: | Line 152: | ||
Done. We now have a user // | Done. We now have a user // | ||
- | **In this document we will use a single user called //appuser// and created in the GUI for simplicity, this is enough for many users. Consider your use case and whether or not you need to go further.** | + | **In this document we will use a single user called //appuser// and created in the GUI, this is more than enough for 99% of users. Consider your use case and whether or not you need to go further. If you do, act accordingly throughout the entire process.** |
---- | ---- | ||
Line 180: | Line 180: | ||
The first step is to define some folders where the different data is stored. To do this, we go to the SERVICES > COMPOSE > SETTINGS tab. | The first step is to define some folders where the different data is stored. To do this, we go to the SERVICES > COMPOSE > SETTINGS tab. | ||
+ | There are many possible configurations on a NAS. First we will see a simple configuration and then we will see a somewhat more advanced configuration. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | == 2.1 SIMPLE OMV NAS SYSTEM == | ||
+ | |||
+ | In the simple configuration we have the OMV operating system on a pendrive. We also have a drive that stores all the NAS data. In this unit we will configure docker and everything necessary. | ||
+ | |||
+ | The following image shows a schematic of this type of configuration. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | In this case all the necessary folders are on the same drive so everything will be very simple. All of them will be inside the mount folder of that drive, something like ''/ | ||
+ | |||
+ | Create those shared folders in the OMV GUI and follow the explanations in point 2.3. Just keep in mind that all paths in this case will be in the same mount folder of type ''/ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | == 2.2 ADVANCED OMV NAS SYSTEM == | ||
+ | |||
+ | In a more advanced configuration than the previous one we can find something like the following. | ||
The image below shows an example schematic that may be typical of any OMV NAS. The explanations in this document from now on will be based on this example system. Your system will probably be different, adapt the explanations to your real system. | The image below shows an example schematic that may be typical of any OMV NAS. The explanations in this document from now on will be based on this example system. Your system will probably be different, adapt the explanations to your real system. | ||
Line 198: | Line 219: | ||
On the right you can see how the plugin' | On the right you can see how the plugin' | ||
- | {{ : | + | {{ : |
+ | |||
+ | ---- | ||
+ | |||
+ | == 2.3 CONFIGURATION == | ||
In any case, the main recommendation here is to **keep docker data and the OMV operating system separate**. | In any case, the main recommendation here is to **keep docker data and the OMV operating system separate**. | ||
Line 210: | Line 235: | ||
- Installing OMV on a USB flash drive is a good idea. But installing docker also on that pendrive is detrimental to the pendrive because docker will perform continuous writes, penalizing the longevity of the pendrive despite openmediavault-flashmemory.< | - Installing OMV on a USB flash drive is a good idea. But installing docker also on that pendrive is detrimental to the pendrive because docker will perform continuous writes, penalizing the longevity of the pendrive despite openmediavault-flashmemory.< | ||
- If you don't have a fast drive you can install docker on one of the data drives. The applications won't go as fast but at least they will be separated from rootfs. | - If you don't have a fast drive you can install docker on one of the data drives. The applications won't go as fast but at least they will be separated from rootfs. | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | This capacity depends on the number and type of containers you are going to configure. A minimum of 60GB or 100GB would be recommended. | ||
+ | If you are going to use database containers like Jellyfin or Plex with very large libraries you may need more, perhaps 250GB or 500GB. Nextcloud can also take up a lot of space depending on how you use it.< | ||
</ | </ | ||
Line 274: | Line 306: | ||
</ | </ | ||
If you don't have a fast drive for Docker, you can configure the < | If you don't have a fast drive for Docker, you can configure the < | ||
+ | </ | ||
+ | * ...< | ||
+ | </ | ||
+ | The internal structure described in the " | ||
</ | </ | ||
* CONFIGURE THE DATA FOLDER: | * CONFIGURE THE DATA FOLDER: | ||
Line 318: | Line 354: | ||
*...< | *...< | ||
</ | </ | ||
- | You can < | + | You can < |
If you need to customize this file just leave the Docker storage field blank, the plugin will not modify the file. | If you need to customize this file just leave the Docker storage field blank, the plugin will not modify the file. | ||
</ | </ | ||
Line 395: | Line 431: | ||
# In this file you can define how many paths you need for different compose files. | # In this file you can define how many paths you need for different compose files. | ||
# The following are examples corresponding to the example system in the Docker on OMV document on the omv-extras wiki. | # The following are examples corresponding to the example system in the Docker on OMV document on the omv-extras wiki. | ||
+ | # Customize the values according to your system configuration. | ||
# | # | ||
PATH_TO_APPDATA=/ | PATH_TO_APPDATA=/ | ||
Line 467: | Line 504: | ||
* TZ -> You can see your local configuration in SYSTEM > DATE & TIME and in TIME ZONE field. | * TZ -> You can see your local configuration in SYSTEM > DATE & TIME and in TIME ZONE field. | ||
* APPDATA -> Find the absolute path of your //appdata// shared folder in STORAGE > SHARED FOLDERS in the ABSOLUTE PATH column. Copy by clicking the link and paste it here. | * APPDATA -> Find the absolute path of your //appdata// shared folder in STORAGE > SHARED FOLDERS in the ABSOLUTE PATH column. Copy by clicking the link and paste it here. | ||
- | * If you need to define other different paths you can also do it here in the same way as the rest of the variables. | + | * Customize the values of all paths according to your system configuration. |
+ | * You can define other variables according to your needs, such as database passwords or any value your compose file needs. | ||
---- | ---- | ||
Line 744: | Line 782: | ||
* To open a code box press the **''</>'' | * To open a code box press the **''</>'' | ||
* Copy and paste the code inside. | * Copy and paste the code inside. | ||
- | * Hide sensitive data, such as passwords or email addresses. | + | * Hide sensitive data, such as passwords or email addresses |
- | * Be grateful for help when you get it, keep in mind that all forum members are volunteers, | + | * Be grateful for help when you receive |
---- | ---- |