Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
omv7:docker_in_omv [2024/04/28 18:11] – [Customize the compose file] chente | omv7:docker_in_omv [2024/04/28 22:01] – [Summary] chente |
---|
\\ | \\ |
\\ | \\ |
**This document establishes a method to successfully install a docker application on OMV.** | |
| |
[[https://forum.openmediavault.org/|{{ :omv7:dockeromv7-2.jpg?direct&200|Go to -> OMV forum}}]] | [[https://forum.openmediavault.org/|{{ :omv7:dockeromv7-2.jpg?direct&200|Go to -> OMV forum}}]] |
* The [[https://forum.openmediavault.org/|OMV forum]] is a two-way tool. It provides users with solutions to their problems. It gives developers insight into the problems users are having and allows them to implement appropriate solutions in software and methods. | **This document establishes a method to successfully install any application on OMV using Docker.** |
* In the case of docker, the forum has received numerous queries from users regarding docker configuration issues. Building on that experience from the forum, this guide lays out a simple docker setup method that fixes the vast majority of these problems before they arise. | |
* We will use docker-compose due to its ease of use and the integration offered by the [[omv7:omv7_plugins:docker_compose|openmediavault-compose]] plugin in OMV. | The [[https://forum.openmediavault.org/|OMV forum]] is a bi-directional tool. Provides users with solutions to their problems. It provides developers with information about user problems and allows them to implement appropriate solutions in software and methods. |
| |
| In the case of Docker, the forum has received numerous queries about very diverse problems. Based on that forum experience, this document offers a simple method for configuring Docker that fixes the vast majority of these problems before they arise. |
| |
| \\ |
\\ | \\ |
**This document contains the following points:** | **Index:** |
| |
* [[omv7:docker_in_omv#what_is_docker|What is Docker.]] | * [[omv7:docker_in_omv#what_is_docker|What is Docker.]] |
* [[omv7:docker_in_omv#user_and_permission_management_in_docker_and_omv_more_security|User and permission management in docker and OMV. More security.]] | * [[omv7:docker_in_omv#user_and_permission_management_in_docker_and_omv_more_security|User and permission management in docker and OMV. More security.]] |
* [[omv7:docker_in_omv#install_and_configure_docker|Install and configure Docker.]] | * [[omv7:docker_in_omv#install_and_configure_docker|Install and configure Docker.]] |
* [[omv7:docker_in_omv#configuring_a_container_step_by_step_jellyfin|Configuring a container step by step (jellyfin).]] | * [[omv7:docker_in_omv#configuring_a_container_step_by_step_jellyfin|Configuring a container step by step (Jellyfin).]] |
* [[omv7:docker_in_omv#examples_of_configuration_of_some_containers|Examples of configuration of some containers.]] | * [[omv7:docker_in_omv#examples_of_configuration_of_some_containers|Examples of configuration of some containers.]] |
* [[omv7:docker_in_omv#some_basic_procedures_for_container_management|Some basic procedures for container management.]] | * [[omv7:docker_in_omv#some_basic_procedures_for_container_management|Some basic procedures for container management.]] |
* In the OMV GUI go to SYSTEM > WORKBENCH and change those two ports to others. For example, change 80 to 8888 and 443 to 8443. Or whatever you want that is not in use. | * In the OMV GUI go to SYSTEM > WORKBENCH and change those two ports to others. For example, change 80 to 8888 and 443 to 8443. Or whatever you want that is not in use. |
* When you change them you will have to add the port to your browser's IP to access the OMV GUI. Example: %%http://192.168.1.50:8888%% | * When you change them you will have to add the port to your browser's IP to access the OMV GUI. Example: %%http://192.168.1.50:8888%% |
| <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#2C6700;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">  Advanced configuration. |
| </span></strong></td></tr><tr><td style="background-color:#e7fae1;height:25px;width:380px;"> |
| NPM requires ports 80 and 443 on the router to validate Let's Encrypt certificates. You can free those ports by changing the ones used by the OMV GUI as suggested or you can do a forwarding from the router to the container.<br> |
| To do this, forward 80 and 443 on the router to, for example, 30080 and 30443 with the server's IP. In the NPM container it collects these ports using:<br> |
| - 30080:80<br> |
| - 30443:443<br> |
| The result will be the same, the container will receive the traffic from those router ports and you will still have the OMV GUI on port 80 and 443 of your local network. |
| </tr></table></body></html> |
| |
[[https://nginxproxymanager.com/|{{ :omv7:dockeromv7-21.png?200|Go to -> https://nginxproxymanager.com/}}]] | [[https://nginxproxymanager.com/|{{ :omv7:dockeromv7-21.png?200|Go to -> https://nginxproxymanager.com/}}]] |
<html><body><pre><code> | <html><body><pre><code> |