omv6:omv6_plugins:docker_compose

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
omv6:omv6_plugins:docker_compose [2023/11/15 09:17] – [How to recover Portainer and other containers from versions prior to omv-extras 6.3 / openmediavault-compose 6.7] chenteomv6:omv6_plugins:docker_compose [2024/04/27 17:22] (current) chente
Line 1: Line 1:
-{{indexmenu_n>3}}+{{indexmenu_n>4}}
 \\ \\
 +
 +<html><center><span style="font-size:150%;">
 +<b>Link to</b> → <a href="https://wiki.omv-extras.org/doku.php?id=omv7:omv7_plugins:docker_compose">(Docker) Compose Plugin For OMV7</a><br>
 +<br/></span></center></html>
 +
 <html><center><b>(Docker) Compose Plugin For OMV6</b></center></html> <html><center><b>(Docker) Compose Plugin For OMV6</b></center></html>
  
Line 64: Line 69:
 {{ :omv6:omv6_plugins:compose1.jpg?direct&600 |Settings}} {{ :omv6:omv6_plugins:compose1.jpg?direct&600 |Settings}}
 \\ \\
 +  * If you are configuring the plugin for the first time you can configure all the parameters and then press the **Save** button and accept the changes. If you are simply modifying a parameter do so and press the **Save** button below. 
 +  * Since the openmediavault-sharerootfs plugin is a dependency of the openmediavault-compose plugin, you can create the different shared folders in the root of the OMV system disk if necessary. 
 +\\
 === Compose Files === === Compose Files ===
  
Line 72: Line 79:
     * In the **Shared Folder** field select a shared folder.     * In the **Shared Folder** field select a shared folder.
       * You can choose a shared folder if you have already created it or create it directly by pressing the "**+**" button on the right.       * You can choose a shared folder if you have already created it or create it directly by pressing the "**+**" button on the right.
-      * Since the openmediavault-sharerootfs plugin is a dependency of the openmediavault-compose plugin, you can create this folder in the root of the OMV system disk if you need to do so. 
     * By default these folders and files will be created with permissions restricted to root only. If you need to customize these permissions you can do so through the rest of the available fields. These permissions will not affect subfolders belonging to volumes with relative paths.     * By default these folders and files will be created with permissions restricted to root only. If you need to customize these permissions you can do so through the rest of the available fields. These permissions will not affect subfolders belonging to volumes with relative paths.
-    * Click **Save** button.+    * Click the **Save** button if you have already finished configuring the parameters in this tab.
  
 ---- ----
Line 82: Line 88:
   * In this field we can define a folder already created where we have the user data.   * In this field we can define a folder already created where we have the user data.
   * The plugin will use this path if we use the CHANGE_TO_COMPOSE_DATA_PATH string in any compose file. This behavior is similar to that of a global environment variable.   * The plugin will use this path if we use the CHANGE_TO_COMPOSE_DATA_PATH string in any compose file. This behavior is similar to that of a global environment variable.
 +  * To define this folder do the following:
 +    * In the **Shared Folder** field select a shared folder.
 +      * You can choose a shared folder if you have already created it or create it directly by pressing the “+” button on the right.
 +    * Click the **Save** button if you have already finished configuring the parameters in this tab.
  
 ---- ----
Line 95: Line 105:
         * Volumes of type '':ro'' will never be included regardless.         * Volumes of type '':ro'' will never be included regardless.
       * Typing ''# SKIP_BACKUP'' at the end of the line that defines a volume will exclude that volume in the backup.       * Typing ''# SKIP_BACKUP'' at the end of the line that defines a volume will exclude that volume in the backup.
 +  * Click the **Save** button if you have already finished configuring the parameters in this tab.
  
 ---- ----
Line 103: Line 114:
   * If you are using nvidia drivers in your docker containers (e.g. for Plex or Jellyfin hardware transcoding) you have to leave the path blank. If not, the nvidia driver settings are getting corrupted each time you reconfigure the OMV settings. You can see more details in the [[https://forum.openmediavault.org/index.php?thread/38013-howto-nvidia-hardware-transcoding-on-omv-5-in-a-plex-docker-container/&postID=313378#post313378|chris_kmn's guide]].   * If you are using nvidia drivers in your docker containers (e.g. for Plex or Jellyfin hardware transcoding) you have to leave the path blank. If not, the nvidia driver settings are getting corrupted each time you reconfigure the OMV settings. You can see more details in the [[https://forum.openmediavault.org/index.php?thread/38013-howto-nvidia-hardware-transcoding-on-omv-5-in-a-plex-docker-container/&postID=313378#post313378|chris_kmn's guide]].
  
-  * In the **Docker Storage** field define the path of the folder you want to use to install Docker.+  * In the **Docker Storage** field define the path of the folder you want to use to install Docker and accept the changes.
     * Avoid using symlinks in this field.     * Avoid using symlinks in this field.
-  * Click **Reinstall Docker** button. Docker is now installed in the new path.+  * Click **Reinstall Docker** button. If you are on OMV6 and the configuration throws an error, simply press the Reinstall Docker button, if there is no error you are done.
  
 <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; Notes <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; Notes
Line 610: Line 621:
 ---- ----
  
-===== Schedule =====+===== Schedule (Updates and Backups) =====
  
 {{ :omv6:omv6_plugins:compose12.jpg?direct&400|Backup}} {{ :omv6:omv6_plugins:compose12.jpg?direct&400|Backup}}
-This tab manages the utility that allows you to make backups in the plugin. Displays a list of scheduled backup jobs.+This tab manages the utility that allows you to perform plugin backups and/or container image updates. Displays a list of scheduled jobs.
  
 By default, backups will be created of all the subfolders that contain the generated compose files. These subfolders are what the plugin generates every time we create a compose file in the GUI. By default, backups will be created of all the subfolders that contain the generated compose files. These subfolders are what the plugin generates every time we create a compose file in the GUI.
Line 630: Line 641:
     * If you want to have several versioned backups over time, you must make a copy later with another specialized application for this purpose.     * If you want to have several versioned backups over time, you must make a copy later with another specialized application for this purpose.
   * The containers that were running when the process started are started again. Those who were detained will continue to be detained.   * The containers that were running when the process started are started again. Those who were detained will continue to be detained.
 +The update task performs the following process:
 +  * Download the container images included in the compose file.
 +  * Recreate the containers with the new image if they were running.
 \\ \\
 <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; Note <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; Note
Line 644: Line 658:
 Opens a dialog for scheduling backup jobs. Opens a dialog for scheduling backup jobs.
  
-  * **Filter** +  * **Settings** 
-    * Allows you to select the compose files to be included in this backup job. +    * Enabled: Enable automatic execution of the task. If it is unchecked, the task can be executed manually. 
-    * Leaving this field blank will cause all compose files to be included. +    * Filter: Allows you to select the compose files to be included in this backup job. 
-    * Filter can be a partial match with use of wildcard (*). e.g. asd* or *asd* or *asd. +      * Leaving this field blank will cause all compose files to be included. 
-    * You can add multiple filters separated by commas. +      * Filter can be a partial match with use of wildcard (*). e.g. asd* or *asd* or *asd. 
-  * Schedule the time of execution using the date and time options. +      * You can add multiple filters separated by commas. 
-    * For example, the attached screenshot will backup all containers on Sundays at 8:36 AM. and will send an email with the result of the backup. +  * **Action Type** 
-  * Select if you want to receive an email with the output of the work, the header will show what you write in the Comment field.+    * Backup: If enabled, a backup task will be executed. 
 +    * Update: If enabled, an update task will be executed for the selected containers. If the backup task is also checked, the backup will be performed first and then the update. Will recreate containers after update if running. 
 +    * Prune: If enabled, prune all dangling images. It does not use a filter, so all existing dangling images will be removed. Will run the ''docker image prune -f'' command. 
 +  * **Schedule** 
 +    * Schedule the time of execution using the date and time options. 
 +      * For example, the attached screenshot will backup all containers on Sundays at 8:36 AM. and will send an email with the result of the backup. 
 +    * Select if you want to receive an email with the output of the work, the header will show what you write in the Comment field.
  
 ---- ----
Line 748: Line 768:
 === How to generate a composition yaml file with Autocompose === === How to generate a composition yaml file with Autocompose ===
 \\ \\
-  * Go to **Services** > **Compose** > **Files** and press the **Autocompose** button+  * Go to **Services** > **Compose** > **Files** and press the **+** and then the **Autocompose** button
   * Expand the **Container** field. A list of all running containers will appear, select the container you want to generate a //yaml// file for.   * Expand the **Container** field. A list of all running containers will appear, select the container you want to generate a //yaml// file for.
     * In the **Name** field, type the name you want to use for the generated file.     * In the **Name** field, type the name you want to use for the generated file.
Line 768: Line 788:
 === How to recover Portainer and other containers from versions prior to omv-extras 6.3 / openmediavault-compose 6.7 === === How to recover Portainer and other containers from versions prior to omv-extras 6.3 / openmediavault-compose 6.7 ===
 \\ \\
-Openmediavault-omvextras version 6.3 and openmediavault-compose version 6.7 have introduced a performance change. Now Portainer is no longer available in omv-extras, if you want to use Portainer you must install it from the compose plugin itself.+Openmediavault-omvextras version 6.3 and openmediavault-compose version 6.7 have introduced an operation change. Now Portainer is no longer available in omv-extras, if you want to use Portainer you must install it from the compose plugin itself.
  
 If you upgraded the plugin version to openmediavalt-compose 6.7 and had Portainer installed from omv-extras prior to this update, at this point all your containers continue to work as usual and are reachable on their usual IP address and port, but you cannot access to their functionality from the OMV GUI. This procedure will guide you on how to proceed next. If you upgraded the plugin version to openmediavalt-compose 6.7 and had Portainer installed from omv-extras prior to this update, at this point all your containers continue to work as usual and are reachable on their usual IP address and port, but you cannot access to their functionality from the OMV GUI. This procedure will guide you on how to proceed next.
  • omv6/omv6_plugins/docker_compose.1700039832.txt.gz
  • Last modified: 2023/11/15 09:17
  • by chente