Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs_in_draft:docker_in_omv [2025/12/08 18:00] – [3. Create appuser] chente | docs_in_draft:docker_in_omv [2025/12/08 18:57] (current) – [Choose a container] chente | ||
|---|---|---|---|
| Line 461: | Line 461: | ||
| Except in very controlled special cases, < | Except in very controlled special cases, < | ||
| Doing so gives the container unrestricted access to your system. Consider carefully what the container is capable of doing before assigning elevated privileges. | Doing so gives the container unrestricted access to your system. Consider carefully what the container is capable of doing before assigning elevated privileges. | ||
| - | If we do this we are giving the container complete freedom to do whatever it wants in our system. Have you created this container? Do you know what he is capable of doing? | ||
| </ | </ | ||
| Line 468: | Line 467: | ||
| === 4. Global environmental variables === | === 4. Global environmental variables === | ||
| - | Global environment variables | + | Global environment variables |
| - | The plugin allows you to define | + | The plugin allows you to define |
| - | This is very useful for defining paths to folders or the user running the container. We define | + | This makes it easy to **define |
| - | Example: | + | Example |
| {{ : | {{ : | ||
| * Variables defined in the global variables file: | * Variables defined in the global variables file: | ||
| Line 508: | Line 507: | ||
| </ | </ | ||
| - | * Now we could define the following | + | * Using these variables, you could write a compose file like this: |
| < | < | ||
| Line 530: | Line 529: | ||
| </ | </ | ||
| - | * And the file that would actually be executed would be this: | + | * When Docker executes |
| < | < | ||
| Line 552: | Line 551: | ||
| </ | </ | ||
| - | What this variable system does is convert the variables that we have defined in the compose file into the actual values that we need to define in the compose file. If we are only creating one compose file it may not make much sense, but it is very useful when there are several compose files. | + | Why this is useful: |
| + | |||
| + | * You only define paths and IDs once. | ||
| + | * Compose files never need to be modified if you move folders or reinstall OMV. | ||
| + | * All containers automatically pick up the updated values. | ||
| - | The advantage of using this system is that we define the compose file once and never need to modify it. Even if we reinstall the OMV system we just need to update those global variables and all our containers will be up to date and continue to work as before. | ||
| \\ | \\ | ||
| < | < | ||
| Note | Note | ||
| </ | </ | ||
| - | At this time, the plugin fully supports global environment variables, even while using the plugin' | + | The plugin fully supports global environment variables, even when using its backup utility. There is no need to use symlinks. If you prefer, you can still use them, but it is optional. If you don’t want to use variables, you can write the full paths and values directly in your compose files. |
| + | The plugin fully supports global environment variables, even while using the plugin' | ||
| + | But if you want to use them for some reason, you can still do so.< | ||
| If you don't want to use environment variables, simply write the full values to the compose files without using variables. | If you don't want to use environment variables, simply write the full values to the compose files without using variables. | ||
| </ | </ | ||
| \\ | \\ | ||
| - | * In the OMV GUI go to SERVICES > COMPOSE > FILES and press the EDIT GLOBAL ENVIRONEMENT FILE button. | + | How to configure in the OMV GUI: |
| - | * In the GLOBAL ENVIRONMENT field copy and paste the example file at the beginning of this section. | + | |
| + | * Go to SERVICES > COMPOSE > FILES and press the EDIT GLOBAL ENVIRONEMENT FILE button. | ||
| + | * In the GLOBAL ENVIRONMENT field copy and paste the example file at the beginning of this section. | ||
| * Customize it with your own values. | * Customize it with your own values. | ||
| * PUID and PGID -> You can see the values of user //appuser// in USERS > USERS in the UID and GID columns. See point 3 of this document. | * PUID and PGID -> You can see the values of user //appuser// in USERS > USERS in the UID and GID columns. See point 3 of this document. | ||
| Line 579: | Line 585: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | === Choose a container === | + | ==== 1. Choose a container |
| \\ | \\ | ||
| [[https:// | [[https:// | ||
| - | * On the [[https:// | + | * On [[https:// |
| - | * Try to choose containers from reputable publishers ([[https:// | + | * Try to choose containers from reputable publishers ([[https:// |
| - | * Check that the container is compatible with your server' | + | * Check that the container is compatible with your server' |
| - | * When choosing one read the publisher' | + | * When choosing one, read the publisher' |
| [[https:// | [[https:// | ||
| - | * The plugin | + | * The plugin |
| + | * As an example we are going to install [[https:// | ||
| *...< | *...< | ||
| Note | Note | ||
| </ | </ | ||
| - | If you have configured folders in the plugin' | + | If you have configured folders in the plugin' |
| </ | </ | ||
| * Go to SERVICES > COMPOSE > FILES and click ADD button, then click ADD FROM EXAMPLE button. | * Go to SERVICES > COMPOSE > FILES and click ADD button, then click ADD FROM EXAMPLE button. | ||
| - | * Click on the EXAMPLE field and in the list look for the jellyfin file and select it. | + | * Click on the EXAMPLE field and and select |
| * In the NAMEame field you can simply write // | * In the NAMEame field you can simply write // | ||
| - | * In the DESCRIPTION field you can write something to identify it as Media server. | + | * In the DESCRIPTION field you can write something to identify it as //Media server//. |
| - | * Press SAVE button. | + | * Press SAVE. |
| - | * In the form you will see a line with the compose file you just added called // | + | * You will now see a line with the compose file you just added, called // |
| < | < | ||
| Beginners Info | Beginners Info | ||
| </ | </ | ||
| - | You will find containers | + | Some containers |
| </ | </ | ||
| [[https:// | [[https:// | ||