<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Docker Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/docker/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 20 Sep 2021 16:34:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install Docker on Debian 11</title>
		<link>https://www.osradar.com/install-docker-debian-server/</link>
					<comments>https://www.osradar.com/install-docker-debian-server/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 20 Sep 2021 05:47:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32142</guid>

					<description><![CDATA[<p>Hello, friends. With Debian 11 up and running, the upgrade work that many sysadmins do begins. Part of it involves installing Docker on Debian 11 so they can deploy their images again without problems on this new system. For those of you who don’t know, Docker is a not-so-old technology for creating and deploying applications [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-debian-server/">Install Docker on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. With Debian 11 up and running, the upgrade work that many sysadmins do begins. Part of it involves installing Docker on Debian 11 so they can deploy their images again without problems on this new system.</p>



<p class="has-line-data">For those of you who don’t know, <strong><a href="https://www.docker.com/" target="_blank" rel="noreferrer noopener">Docker </a>is a not-so-old technology for creating and deploying applications using containers</strong>. Containers allow you to package an application with all the parts you need, such as libraries and other dependencies and deploy it as a single package.</p>



<p class="has-line-data">One of the advantages of using containers is that <strong>we can be sure that our application will run the same on other computers and systems that support Docker</strong> regardless of any custom configuration the machine may have.</p>



<p class="has-line-data">So, as you can see, developers and sysadmin consider Docker essential to do most of the work they do.</p>



<p class="has-line-data">So, let’s install it on Debian 11.</p>



<h2 class="code-line"><a id="Install_Docker_on_Debian_11_10"></a>Install Docker on Debian 11</h2>



<p class="has-line-data">From the official Docker documentation, we are told that there are several methods of installation. One of them is to add the official Docker repository to the system to get the latest stable version available. This is the recommended method.</p>



<p class="has-line-data">So, connect via SSH to your server or open your terminal and make sure the system is up to date.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">In case you don’t have <code>sudo</code> access then you will have to run these commands as root.</p>



<p class="has-line-data">If you want to install Docker on your system, you probably don’t have it, but you want to make sure it is not installed. This is especially important in work environments where access is shared.</p>



<pre class="wp-block-preformatted">sudo apt remove docker docker-engine docker.io containerd runc</pre>



<p class="has-line-data">Next, install a few packages needed to complete the tutorial.</p>



<pre class="wp-block-preformatted">sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release</pre>



<p class="has-line-data">After this, add the GPG key from the repository.</p>



<pre class="wp-block-preformatted">curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg</pre>



<p class="has-line-data">And now yes, add the Docker repository for Debian 11</p>



<pre class="wp-block-preformatted">echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null</pre>



<p class="has-line-data">Refresh APT again and now install Docker on the system.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  aufs-tools cgroupfs-mount | cgroup-lite
Recommended packages:
  apparmor docker-ce-rootless-extras git libltdl7 pigz docker-scan-plugin
The following NEW packages will be installed:
  containerd.io docker-ce docker-ce-cli
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 84.7 MB of archives.</pre>



<p class="has-line-data">Now you can verify the installed version with the command</p>



<pre class="wp-block-preformatted">docker --version
Docker version 20.10.8, build 3967b7d</pre>



<p class="has-line-data">And also check the status of the service</p>



<pre class="wp-block-preformatted">sudo systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-09-07 17:34:04 CEST; 2min 47s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 3127 (dockerd)
      Tasks: 8
     Memory: 38.1M
        CPU: 318ms
     CGroup: /system.slice/docker.service
             └─3127 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.207590098+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=gr&gt;Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.207613182+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/co&gt;Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.207627959+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.291431722+02:00" level=info msg="Loading containers: start."
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.507218484+02:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16&gt;Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.586246350+02:00" level=info msg="Loading containers: done."
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.607084077+02:00" level=info msg="Docker daemon" commit=75249d8 graphdriver(s)=overlay2 version=20.10.8 Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.607211307+02:00" level=info msg="Daemon has completed initialization"
Sep 07 17:34:04 osradar systemd[1]: Started Docker Application Container Engine.
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.638456943+02:00" level=info msg="API listen on /run/docker.sock"</pre>



<h2 class="code-line"><a id="Configuring_Docker_before_using_it_50"></a>Configuring Docker before using it</h2>



<p class="has-line-data">By default, Docker is used with the root user. This can lead to security problems and you may not want to do it.</p>



<p class="has-line-data">So to be able to use Docker without being root, you need to create a group called <code>docker</code> and add your user to this group.</p>



<pre class="wp-block-preformatted">sudo groupadd docker
sudo usermod -aG docker $USER</pre>



<p class="has-line-data">Log out and log back in so that your group membership is re-evaluated.</p>



<p class="has-line-data">This is enough.</p>



<p class="has-line-data">Another thing you can do is to make Docker start with the system. To do this, run these commands.</p>



<pre class="wp-block-preformatted">sudo systemctl enable docker.service
sudo systemctl enable containerd.service</pre>



<p class="has-line-data">Now we can test the installation.</p>



<h2 class="code-line"><a id="Testing_Docker_on_Debian_11_70"></a>Testing Docker on Debian 11</h2>



<p class="has-line-data">To test Docker, just run the <code>hello-world</code> image that is included in the installation.</p>



<pre class="wp-block-preformatted">docker run hello-world</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="890" height="484" src="https://www.osradar.com/wp-content/uploads/2021/09/1-4.png" alt="1.- Docker running on Debian 11" class="wp-image-32152" srcset="https://www.osradar.com/wp-content/uploads/2021/09/1-4.png 890w, https://www.osradar.com/wp-content/uploads/2021/09/1-4-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/1-4-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/1-4-696x378.png 696w" sizes="(max-width: 890px) 100vw, 890px" /><figcaption>1.- Docker running on Debian 11</figcaption></figure>



<p class="has-line-data">The image indicates that everything went well. Enjoy it.</p>



<h2 class="code-line"><a id="Conclusion_78"></a>Conclusion</h2>



<p class="has-line-data">Docker is a fantastic tool that has revolutionized the way software is distributed. For this, it is necessary to install it on a robust system like Debian 11.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-debian-server/">Install Docker on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-docker-debian-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy Ampache using Docker</title>
		<link>https://www.osradar.com/deploy-ampache-using-docker/</link>
					<comments>https://www.osradar.com/deploy-ampache-using-docker/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 29 May 2021 08:47:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ampache]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30166</guid>

					<description><![CDATA[<p>Hello, friends. As we all know Docker is a fascinating technology and in this post, we will take full advantage of it. In this post, you will learn how to deploy Ampache using Docker on a server. Install Docker on Linux The first step is to install Docker and for that, we present you with [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-ampache-using-docker/">Deploy Ampache using Docker</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. As we all know Docker is a fascinating technology and in this post, we will take full advantage of it. In this post, you will learn how to deploy <a href="https://ampache.org/" target="_blank" rel="noreferrer noopener">Ampache</a> using Docker on a server.</p>



<h2 id="install-docker-on-linux"><a href="#install-docker-on-linux" name="install-docker-on-linux"></a>Install Docker on Linux</h2>



<p>The first step is to install Docker and for that, we present you with some tutorials in different Linux distributions.</p>



<p>If you are using Ubuntu: <a href="https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 20.04</a><br>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a><br>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a><br>If you use Windows: <a href="https://www.osradar.com/install-docker-on-windows-server-2019/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a><br>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></p>



<p>And using your distribution’s package manager, you can install Docker Compose. For example:</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install docker-compose</pre>



<p>For Debian, Ubuntu, and derivatives.</p>



<pre class="wp-block-preformatted">sudo dnf install docker-compose</pre>



<p>Or, for RHEL, CentOS and derivatives.</p>



<p>Once Docker and Docker compose are installed now is the Gits turn.</p>



<h2 id="deploy-ampache-using-docker"><a href="#deploy-ampache-using-docker" name="deploy-ampache-using-docker"></a>Deploy Ampache using Docker</h2>



<p>Now with Docker installed on our operating system, it’s time to deploy Ampache.</p>



<p>To do this, first, create the folder where the Docker Compose file will be and access it.</p>



<pre class="wp-block-preformatted">mkdir ampache &amp;&amp; cd ampache</pre>



<p>You can change both the path and the name of the folder but set an indicative name.</p>



<p>Inside it, create a file called <code>docker-compose.yml</code> with the help of a text editor. In this case, I will use nano.</p>



<pre class="wp-block-preformatted">nano docker.compose.yml</pre>



<p>And add the following content:</p>



<pre class="wp-block-preformatted">version: '3'

services:
  ampache:
    image: ampache/ampache:latest
    container_name: ampache
    restart: unless-stopped
    ports:
      - 80:80
    volumes:
      - ./data/config:/var/www/config
      - ./data/log:/var/log/ampache
      - ./data/media:/media
      - ./data/mysql:/var/lib/mysql</pre>



<p>Save the changes and close the editor.</p>



<p>Now, deploy the Docker container by running</p>



<pre class="wp-block-preformatted">sudo docker-compose up -d</pre>



<p>This will start the whole process of downloading and deploying the images. When finished, set the necessary permissions on the created folders.</p>



<pre class="wp-block-preformatted">sudo chown www-data:www-data ./data/config -R
sudo chmod 777 ./data/config -R</pre>



<p>Before completing the installation via the web, we will need to obtain the default MySQL key. To do this, find out the Ampache container ID.</p>



<pre class="wp-block-preformatted">sudo docker ps</pre>



<p>You will get an output screen similar to this one</p>



<pre class="wp-block-preformatted">CONTAINER ID   IMAGE                    COMMAND                  CREATED         STATUS         PORTS                               NAMES
8e0e2c7dec77   ampache/ampache:latest   "docker-entrypoint.s…"   5 minutes ago   Up 2 seconds   0.0.0.0:80->80/tcp, :::80->80/tcp   ampache</pre>



<p>From it, we will know that the ID is <code>8e0e2c7dec77</code> and now check the logs for that container.</p>



<pre class="wp-block-preformatted">sudo docker logs 8e0e2c7dec77</pre>



<p>You’ll get a widescreen output but you’ll see something similar to this</p>



<pre class="wp-block-preformatted">========================================================================
You can now connect to this MySQL Server using:

    mysql -uadmin -pbbgqpKn52t7c -h&lt;host> -P&lt;port>

Please remember to change the above password as soon as possible!
MySQL user 'root' has no password but only allows local connections</pre>



<p>The password is what is after <code>-p</code> in this case it is <code>bbgqpKn52t7c</code>.</p>



<p>Now open a web browser and visit <code>http://ip-server/install.php</code> and you can start the installation process with the language selection.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/05/1-8-1024x502.png" alt="1.- Ampache installation" class="wp-image-30290" srcset="https://www.osradar.com/wp-content/uploads/2021/05/1-8-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/1-8-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/1-8-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/1-8-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/1-8-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/1-8.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Ampache installation</figcaption></figure>



<p>Next, set the configuration parameters.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/05/2-4-1024x506.png" alt="2.- Ampache using Docker" class="wp-image-30291" srcset="https://www.osradar.com/wp-content/uploads/2021/05/2-4-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/2-4-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/2-4-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/2-4-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/2-4-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/2-4.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Ampache using Docker</figcaption></figure>



<p>And continue the process.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/05/3-3-1024x506.png" alt="3.- Deploy Ampache with Docker" class="wp-image-30292" srcset="https://www.osradar.com/wp-content/uploads/2021/05/3-3-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/3-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/3-3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/3-3-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/3-3-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/3-3.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Deploy Ampache with Docker</figcaption></figure>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>In this post, you learned how with the help of Docker we can quickly have an Ampache installation on a server. This simple process allows us a lot of flexibility and portability.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-ampache-using-docker/">Deploy Ampache using Docker</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/deploy-ampache-using-docker/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Docker on Fedora 34/33?</title>
		<link>https://www.osradar.com/install-docker-fedora-33/</link>
					<comments>https://www.osradar.com/install-docker-fedora-33/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 09 May 2021 23:11:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[fedora31]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15595</guid>

					<description><![CDATA[<p>If there is a system that is characterized by the incorporation of new features is Fedora Linux. This is because it wants to be a modern, safe and leading distribution in the collaboration of projects. This philosophy fits quite well with Docker because it is a powerful technology, innovative and above all useful for the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-fedora-33/">How to install Docker on Fedora 34/33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If there is a system that is characterized by the incorporation of new features is Fedora Linux. This is because it wants to be a modern, safe and leading distribution in the collaboration of projects. This philosophy fits quite well with Docker because it is a powerful technology, innovative and above all useful for the administration of servers. So, in this context, <strong>this article will help you install Docker in Fedora 34/33.</strong></p>



<p><a rel="noreferrer noopener" aria-label="Docker (opens in a new tab)" href="https://www.docker.com/" target="_blank">Docker</a> is a recent technology that allows the deployment of applications and programs in the form of containers. That is, as a kind of virtual machine but contained only for that application. In this blog, we have taught you how to install some applications using this methodology.</p>



<ul><li><a rel="noreferrer noopener" aria-label="Deploy PHPMyAdmin using Docker Compose (opens in a new tab)" href="https://www.osradar.com/deploy-phpmyadmin-using-docker-compose/" target="_blank">Deploy PHPMyAdmin using Docker Compose</a></li><li><a rel="noreferrer noopener" aria-label="Nextcloud using Docker compose (opens in a new tab)" href="https://www.osradar.com/nextcloud-docker-compose/" target="_blank">Nextcloud using Docker compose</a></li><li><a rel="noreferrer noopener" aria-label="How to deploy Jenkins using docker-compose? (opens in a new tab)" href="https://www.osradar.com/deploy-jenkins-using-docker-compose/" target="_blank">How to deploy Jenkins using docker-compose?</a></li><li><a rel="noreferrer noopener" aria-label="Deploy MongoDB using Docker Compose (opens in a new tab)" href="https://www.osradar.com/deploy-mongodb-using-docker-compose/" target="_blank">Deploy MongoDB using Docker Compose</a></li></ul>



<p>This is a great advantage at the time of deployment because we do not care about the dependencies they may have. On the other hand, Docker is very secure and by default isolates network processes and data between host and container. It is widely used among sysadmin and even developers.</p>



<h2>Install Docker on Fedora 34/33?</h2>



<p>Fedora 34 being so new, <strong>uses cgroups v2 by default and this is a problem with Docker </strong>because it doesn&#8217;t implement it yet. Then, to the steps that are indicated in the official documentation of Docker, it is necessary to add some new steps. Let&#8217;s go for it:</p>



<p>First let&#8217;s install Docker normally, for it opens a terminal session and executes the following command:</p>



<pre class="wp-block-preformatted">$ sudo dnf config-manager --add--repo https://download.docker.com/linux/fedora/docker-ce.repo </pre>



<p>Then, once the Docker repository is configured, we proceed to install it with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install docker-ce</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="526" src="https://www.osradar.com/wp-content/uploads/2021/03/Screenshot-from-2021-05-07-12-43-45-1024x526.png" alt="1.- Installing Docker on Fedora 34/33" class="wp-image-29957" srcset="https://www.osradar.com/wp-content/uploads/2021/03/Screenshot-from-2021-05-07-12-43-45-1024x526.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/Screenshot-from-2021-05-07-12-43-45-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/Screenshot-from-2021-05-07-12-43-45-768x395.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/Screenshot-from-2021-05-07-12-43-45-696x358.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/Screenshot-from-2021-05-07-12-43-45-1068x549.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/Screenshot-from-2021-05-07-12-43-45.png 1358w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Docker on Fedora 34/33</figcaption></figure>



<p>When the installation is complete, Docker will be installed. </p>



<p>You can configure Docker to run without root permissions. To do this, run the following commands:</p>



<pre class="wp-block-preformatted">:~$ sudo groupadd docker :$ sudo groupadd docker<br>:~$ sudo usermod -aG docker $USER</pre>



<p>We will now make some changes to Fedora&#8217;s grub to adapt the system to Docker. </p>



<p>Edit the default grub configuration file:</p>



<pre class="wp-block-preformatted">:~$ sudo gedit /etc/default/grub</pre>



<p>And in the line that starts with &#8220;<code>GRUB_CMDLINE_LINUX</code>&#8220;, the following parameter must be added: <code>system.unified_cgroup_hierarchy=0</code>.</p>



<p>Then save the changes and close the file. </p>



<p>To apply the changes you have to update the grub with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo grub2-mkconfig </pre>



<p>And finally, reboot the system.</p>



<p>When you start the system again, you can start and use docker. To start the service, just use the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl start docker</pre>



<p> And if you want it to start along with the system, add this other command:</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl enable docker</pre>



<p>And now, you can use Docker on Fedora 34/33.</p>



<h2>Conclusion</h2>



<p>Fedora is an excellent and innovative system, but sometimes being at the forefront means some inconvenience when installing certain programs. That is why for Docker to work perfectly, you have to take some extra steps. And you have learned that today.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-fedora-33/">How to install Docker on Fedora 34/33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-docker-fedora-33/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy Apache Tomcat with Docker Compose</title>
		<link>https://www.osradar.com/deploy-apache-tomcat-docker-compose/</link>
					<comments>https://www.osradar.com/deploy-apache-tomcat-docker-compose/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 31 Oct 2020 02:52:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24801</guid>

					<description><![CDATA[<p>Hello friends, in this post, you will learn how to deploy Apache Tomcat using Docker compose. So you can deploy your applications quickly and easily in any system supported by Docker. Apache Tomcat Java and its multipurpose language and that make it so good and useful to learn. Well, after coding your web application, it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-apache-tomcat-docker-compose/">Deploy Apache Tomcat with Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello friends, in this post, you will learn how to deploy Apache Tomcat using Docker compose. So you can deploy your applications quickly and easily in any system supported by Docker.</p>



<h2>Apache Tomcat</h2>



<p><a href="https://www.osradar.com/tag/java/">Java</a> and its multipurpose language and that make it so good and useful to learn. Well, after coding your web application, it gets to the point where you have to deploy it. To do this, it requires a server that can interpret that Java code. Remember that we are talking about web applications. And to deploy and serve it, nothing like <a href="https://tomcat.apache.org/">Apache Tomcat</a>.</p>



<p>Estricatemente speaking Tomcat is not a server but transforms the caught JPS into servlets that can serve the application in question.</p>



<p>On the other hand, Apache Tomcat is open source and can be installed on any system running Java.</p>



<h2>Deploy Apache Tomcat with Docker Compose</h2>



<h3>1.- Install Docker on Linux</h3>



<p>The first step is to have Docker installed in the system, obviously.</p>



<ul><li>If you are using Ubuntu: <a href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 18.04?</a></li><li>Or Ubuntu 20.04: <a href="https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 20.04?</a></li><li>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a></li><li>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a></li><li>If you use Windows: <a href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a></li><li>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></li></ul>



<p>And using your distribution’s package manager, you can install Docker Compose. For example:</p>



<pre class="wp-block-preformatted">:~$ sudo apt docker-compose</pre>



<p>For Debian, Ubuntu, and derivatives.</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install docker-compose</pre>



<p>Or, for RHEL, CentOS and derivatives.</p>



<h3>2.- Create the docker-compose file</h3>



<p>Spreading Apache Tomcat using the official Docker image is quite easy. In this case, we will use the latest version available but we will also add a MariaDB image so that if your application requires it you can use it without problems.</p>



<p>So, create the file called <code>docker-compose.yml</code> and add the following content:</p>



<pre class="wp-block-preformatted">version: '2'
services:
      tomcat:
         image: 'tomcat:9.0.39'
         restart: on-failure:3
         ports:
             - '8080:8080'
         volumes:
             - './tomcat-users.xml:/opt/bitnami/tomcat/conf/tomcat-users.xml:rw'
             - './context.xml:/usr/local/tomcat/conf/Catalina/localhost/manager.xml:rw'
             - './context.xml:/usr/local/tomcat/conf/Catalina/localhost/host-manager.xml:rw'
             - '.[.war_path]:/usr/local/tomcat/webapps/project.war
             - '.[project_folder_path]:/usr/local/tomcat/webapps/myproject

      mariadb:
         image: mariadb:latest
         restart: unless-stopped
         environment:
             - MYSQL_ROOT_PASSWORD= angelo
             - MYSQL_DATABASE= tomcat
         volumes:
             - /home/angelo/mysql:/var/lib/mysql

volumes:
tomcat_data:
driver: local</pre>



<p>And let&#8217;s explain some things.</p>



<p>First, we will expose port <code>8080</code> of the host for Tomcat to use. That remains the same. But in <em>Volume</em>, we can define our local configuration files to be read by Tomcat. This is optional but can be useful.</p>



<p>Also inside the <em>Volume</em> section, you can reference the war file of your project as well as the project folder.</p>



<p>Replace each value with your own, for example, paths and filenames. As well as the port you want to expose.</p>



<p>In the case of MariaDB, everything is even simpler, because the configuration is very clear. In the end, replace the directory <code>/home/angelo/mysql</code> with the one you want to have access to the data.</p>



<p>Save the changes and close the file.</p>



<p>Before running it, you have to create the necessary directories and files.</p>



<p>If you don&#8217;t have the file <code>tomcat-users.xml</code>, create it</p>



<pre class="wp-block-preformatted">nano tomcat-users.xml</pre>



<p>And add:</p>



<pre class="wp-block-preformatted">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0"&gt;
&lt;role rolename="manager-gui"/&gt;
&lt;role rolename="admin-gui"/&gt;
&lt;user username="admin" password="angelo123" roles="manager-gui,admin-gui"/&gt;
&lt;/tomcat-users&gt;</pre>



<p>Replace username and password with your own.</p>



<p>Also, the folder for MariaDB data:</p>



<pre class="wp-block-preformatted">mkdir /home/angelo/mysql</pre>



<p>Again, replace it with yours.</p>



<h3>3.- Running Docker Compose</h3>



<p>Now yes, with everything ready we can perform docker compose.</p>



<pre class="wp-block-preformatted">sudo docker-compose up -d</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="950" height="637" src="https://www.osradar.com/wp-content/uploads/2020/10/2-16.png" alt="Deploy Apache Tomcat with Docker Compose" class="wp-image-24968" srcset="https://www.osradar.com/wp-content/uploads/2020/10/2-16.png 950w, https://www.osradar.com/wp-content/uploads/2020/10/2-16-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/2-16-768x515.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/2-16-696x467.png 696w" sizes="(max-width: 950px) 100vw, 950px" /><figcaption>Deploy Apache Tomcat with Docker Compose</figcaption></figure>



<p>And then, you can open your browser and access your applications <code>http://your-server:8080</code></p>



<p>If you do not upload any project, you will see the following screen:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/10/5-8-1024x502.png" alt="Apache Tomcat running" class="wp-image-24967" srcset="https://www.osradar.com/wp-content/uploads/2020/10/5-8-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/5-8-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/5-8-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/5-8-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/5-8-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/5-8.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Apache Tomcat running</figcaption></figure>



<p>This is not an error, it just indicates that there is no project uploaded. This means that Apache Tomcat is ready for you to deploy applications.</p>



<h2>Conclusion</h2>



<p>With Docker we can do wonders quickly and easily thanks to docker compose. So today you have learned how to deploy Apache Tomcat.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and our <a href="https://www.facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook page</a>. Also, buy us a coffee 😉</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-apache-tomcat-docker-compose/">Deploy Apache Tomcat with Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/deploy-apache-tomcat-docker-compose/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Docker on OpenSUSE 15.2 / 15.1?</title>
		<link>https://www.osradar.com/install-docker-opensuse-15-2-15-1/</link>
					<comments>https://www.osradar.com/install-docker-opensuse-15-2-15-1/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 10 Jul 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Leap]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[opensuse 15]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17724</guid>

					<description><![CDATA[<p>Docker is a fairly popular technology in today’s sysadmin. It is logical to think because it means a complete change in the way images and applications are distributed. In addition to all this, you can get the most out of many server-based Linux distributions. Therefore, learning about this technology is vital in the modern world. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-opensuse-15-2-15-1/">How to install Docker on OpenSUSE 15.2 / 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><a rel="noreferrer noopener" aria-label="Docker (opens in a new tab)" href="https://www.docker.com/" target="_blank">Docker</a> is a fairly popular technology in today’s sysadmin. It is logical to think because it means a complete change in the way images and applications are distributed. In addition to all this, you can get the most out of many server-based Linux distributions. Therefore,  learning about this technology is vital in the modern world. Therefore,  in this post, you will learn <strong>how to install Docker on OpenSUSE 15.2 / 15.1</strong>.  There are several premium versions, but in this case, we will use the community version which is more than enough for many cases.</p>



<h2>Install Docker on OpenSUSE</h2>



<p>An essential reason for installing a docker is the handling and execution of containers. This brings as a main advantage that we can deploy applications without worrying about the dependencies or the system that runs it.</p>



<p>On the other hand, we will be able to create our own images of our applications and these will be able to be installed in any system with Docker.</p>



<p>OpenSUSE is a community operating system sponsored by SUSE. However, it is quite robust, reliable and secure and that is why it is used on many servers worldwide.</p>



<p>So let&#8217;s go for it.</p>



<p>First, open a terminal session and update the system.</p>



<pre class="wp-block-preformatted">:~$ sudo zypper up</pre>



<p>This will cause all pending security patches to be installed and it is a good idea to do this before starting any installation.</p>



<p>Fortunately, Docker and Docker-compose are available from the official OpenSUSE repositories. While it is not the latest version, it is a fairly stable version that guarantees us functionality.</p>



<p>So run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo zypper in docker docker-compose</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="280" src="https://www.osradar.com/wp-content/uploads/2020/01/1-16-1024x280.png" alt="1.- Install Docker on OpenSUSE 15.2 / 15.1" class="wp-image-17725" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-16-1024x280.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-16-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-16-768x210.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-16-696x190.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-16-1068x292.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-16.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install Docker on OpenSUSE 15.2 / 15.1</figcaption></figure>



<p>Accept the installation and then the process will begin.</p>



<h2>Testing the installation</h2>



<p>Once the installation has been successfully completed, the first thing to do is to start the Docker service. </p>



<pre class="wp-block-preformatted">:~$ sudo systemctl start docker</pre>



<p>And then, you can check the status of the service to make sure it&#8217;s working properly.</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl status docker</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="363" src="https://www.osradar.com/wp-content/uploads/2020/01/2-15-1024x363.png" alt="2.- Docker service status" class="wp-image-17726" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-15-1024x363.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-15-300x106.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-15-768x272.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-15-696x247.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-15-1068x379.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/2-15-1185x420.png 1185w, https://www.osradar.com/wp-content/uploads/2020/01/2-15.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Docker service status</figcaption></figure>



<p>As you can see in the image, the service is running normally.</p>



<p>Also, if you want Docker to run as soon as the system starts, which is highly recommended, use this other command:</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl enable docker</pre>



<p>Now we can get a real example, check if Docker is ready for the job or not.</p>



<p>To do this we will use a test image that Docker puts at our disposal. You can execute it with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo docker run --rm hello-world</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="522" src="https://www.osradar.com/wp-content/uploads/2020/01/3-14.png" alt="3.- Docker on OpenSUSE 15.2 / 15.1" class="wp-image-17727" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-14.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-14-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-14-768x392.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-14-696x355.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-14-824x420.png 824w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Docker on OpenSUSE 15.2 / 15.1</figcaption></figure>



<p>As you see in the image above. Docker&#8217;s installation has been successful.</p>



<p>To verify the current version of Docker, run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo docker version</pre>



<p>However, if you want to use Docker without root privileges, just use the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo usermod -aG docker $(whoami)</pre>



<p>After that reboot the system and that is it. Docker is ready for the work.</p>



<h2>Conclusion</h2>



<p>Docker’s technology is a wonder if you work with large-scale servers. Its practicality when depleting applications makes it an alternative to virtual machines. And now you have learned to install it on OpenSUSE 15.2 / OpenSUSE 15.1.</p>



<p>So, you can also learn how to install Docker on other systems.</p>



<ul><li>If you are using Ubuntu: <a rel="noreferrer noopener" href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank">How to install Docker on Ubuntu 18.04?</a></li><li>For CentOS 8: <a rel="noreferrer noopener" href="https://www.osradar.com/install-docker-centos-8/" target="_blank">How to install Docker on CentOS 8?</a></li><li>For CentOS 7: <a rel="noreferrer noopener" href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank">How to install Docker CE on CentOS 7?</a></li><li>If you use Windows: <a rel="noreferrer noopener" href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank">How to install Docker in Windows 10?</a></li><li>Or, if you are using Debian 10 or Ubuntu 20.04: <a rel="noreferrer noopener" href="https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/" target="_blank">How to install Docker on Ubuntu 20.04 / Debian 10?</a></li></ul>



<p>So, please share this post with your friends and <a href="https://t.me/osradar">join our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-opensuse-15-2-15-1/">How to install Docker on OpenSUSE 15.2 / 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-docker-opensuse-15-2-15-1/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Docker on Ubuntu 20.04 / Debian 10?</title>
		<link>https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/</link>
					<comments>https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 27 May 2020 23:21:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12707</guid>

					<description><![CDATA[<p>Docker is a fairly popular technology in today&#8217;s sysadmin. It is logical to think because it means a complete change in the way images and applications are distributed. In addition to all this, you can get the most out of many server-based Linux distributions. Therefore, learning about this technology is vital in the modern world. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/">How to install Docker on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Docker is a fairly popular technology in today&#8217;s sysadmin. It is logical to think because it means a complete change in the way images and applications are distributed. In addition to all this, you can get the most out of many server-based Linux distributions. Therefore, learning about this technology is vital in the modern world. Therefore, in this post, you will learn how to install Docker on Ubuntu 20.04 / Debian 10. There are several premium versions, but in this case, we will use the community version which is more than enough for many cases.</p>
<h2>Docker on the &#8220;new&#8221; world</h2>
<p>Before <a href="https://www.docker.com/" rel="noopener">Docker</a>, the basic way to distribute applications on a server was through a virtual machine. I explain, if you developed an application that required a certain library in <a href="https://www.osradar.com/tag/debian/" rel="noopener">Debian</a> 8 and you had to deploy it on a server, the most logical solution was to create a virtual machine with Debian 8. This was a small problem, having a virtual machine for one or two applications is not adequate. On the other hand, the server had to move several systems at once.</p>
<p>Now with Docker, you can &#8220;package&#8221; that application and its dependencies in the form of a container. These containers are distributed in the form of images that are interpreted by Docker on the server and <strong>can run independently of the system where it was built</strong>.</p>
<p>Likewise, Docker has port and volume isolation to <strong>increase security and integrity between the image and the host system</strong>.</p>
<p>Now, we are going to install Docker on Ubuntu 20.04 / Debian 10.</p>
<h2>Install Docker on Ubuntu 20.04 / Debian 10</h2>
<p>To perform this tutorial, it is necessary to have a user <a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" rel="noopener">who has access to sudo</a> or to have the password of the root user. Remember that we are going to do an installation.</p>
<p>On the other hand, the server or computer must have <a href="https://www.osradar.com/termius-is-a-powefull-ssh-client/" rel="noopener">SSH enabled</a>. Although if you have installed Debian 10 Buster with <a href="https://www.osradar.com/how-to-install-debian-10-buster/" rel="noopener">our tutorial</a>, it should already be working.</p>
<h3>1.- Add the Docker Repository</h3>
<p>The easiest and safest way to install Docker on Ubuntu 20.04 / Debian 10 is to use the official Docker repository. This way, we will save time but we will also have Docker updated in an easy and secure way. So this is the officially recommended option.</p>
<p>Before adding the repository, first, you have to install some necessary packages. In a terminal session, run the following command:</p>
<pre>:~$ sudo apt install apt-transport-https  ca-certificates curl gnupg2 software-properties-common</pre>
<p><figure id="attachment_12711" aria-describedby="caption-attachment-12711" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12711" src="https://www.osradar.com/wp-content/uploads/2019/07/1-12.png" alt="1.- Install some required package" width="1354" height="339" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-12.png 1354w, https://www.osradar.com/wp-content/uploads/2019/07/1-12-300x75.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-12-768x192.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/1-12-1024x256.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/1-12-696x174.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/1-12-1068x267.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-12711" class="wp-caption-text">1.- Install some required package</figcaption></figure></p>
<p>The next step is to add the official GPG key to the repository. This ensures that downloaded packages are not compromised.</p>
<p>For Debian 10:</p>
<pre>:~$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
OK</pre>
<p>For Ubuntu 20.04:</p>
<pre>:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Ok</pre>
<p>Using this repository <strong>you can install the test and nightly versions</strong>. However, we will use the stable channel to perform the installation.</p>
<p>For Debian 10:</p>
<pre>:~$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian/ $(lsb_release -cs) stable"</pre>
<p>For Ubuntu 20.04:</p>
<pre>:~$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu/ $(lsb_release -cs) stable"</pre>
<h3>2.- Install Docker CE on Ubuntu 20.04 / Debian 10</h3>
<p>Now that the Docker repository is added correctly, we will be able to update the APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>Now, using the following command we can install Docker.</p>
<pre>:~$ sudo apt install docker-ce docker-ce-cli containerd.io</pre>
<p><figure id="attachment_12712" aria-describedby="caption-attachment-12712" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12712 size-full" src="https://www.osradar.com/wp-content/uploads/2019/07/2-10.png" alt="2.- Install Docker on Ubuntu 20.04 / Debian 10" width="1366" height="372" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/2-10-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-10-768x209.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-10-1024x279.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/2-10-696x190.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/2-10-1068x291.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12712" class="wp-caption-text">2.- Install Docker on Ubuntu 20.04 / Debian 10</figcaption></figure></p>
<p><em><strong>Note: If you have several Docker repositories enabled APT will always choose the newest version and this is a stability problem because It would prefer a beta version to a stable one.</strong></em></p>
<h3>3.- Test the Docker installation</h3>
<p>First, we verify that the Docker service is correctly started with this command:</p>
<pre>:~$ sudo systemctl start docker</pre>
<p>If you want Docker starts at the booting:</p>
<pre>:~$ sudo systemctl enable docker</pre>
<p>Next, check the service status:</p>
<pre>:~$ sudo systemctl status docker</pre>
<p><figure id="attachment_12713" aria-describedby="caption-attachment-12713" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12713" src="https://www.osradar.com/wp-content/uploads/2019/07/3-7.png" alt="3.- Docker is running" width="1366" height="355" srcset="https://www.osradar.com/wp-content/uploads/2019/07/3-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/3-7-300x78.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/3-7-768x200.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/3-7-1024x266.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/3-7-696x181.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/3-7-1068x278.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12713" class="wp-caption-text">3.- Docker is running</figcaption></figure></p>
<p>As you can see, the Docker service is working properly.</p>
<p>Finally, run the docker <code>hello-world</code>.</p>
<pre>:~$ sudo docker run hello-world</pre>
<p><figure id="attachment_12714" aria-describedby="caption-attachment-12714" style="width: 718px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12714" src="https://www.osradar.com/wp-content/uploads/2019/07/4-5.png" alt="4.- Docker Hello world" width="718" height="467" srcset="https://www.osradar.com/wp-content/uploads/2019/07/4-5.png 718w, https://www.osradar.com/wp-content/uploads/2019/07/4-5-300x195.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/4-5-696x453.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/4-5-646x420.png 646w" sizes="(max-width: 718px) 100vw, 718px" /><figcaption id="caption-attachment-12714" class="wp-caption-text">4.- Docker Hello world</figcaption></figure></p>
<p>So, Docker is ready for the action.</p>
<h2>Conclusion</h2>
<p>Docker&#8217;s technology is a wonder if you work with large-scale servers. Its practicality when depleting applications makes it an alternative to virtual machines. And now you have learned to install it on Ubuntu 20.04 / Debian 10.</p>
<p>So, please share this post with your friends and <a href="https://t.me/osradar" rel="noopener noreferrer">join our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/">How to install Docker on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy a Jitsi Meet server with Docker</title>
		<link>https://www.osradar.com/deploy-jitsi-meet-server-with-docker/</link>
					<comments>https://www.osradar.com/deploy-jitsi-meet-server-with-docker/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 21 May 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jitsi]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[video conference]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20325</guid>

					<description><![CDATA[<p>Hi, folks. In this very short tutorial, I will show you how to deploy a Jitsi Meet server using Docker. This indicates that it will work for any system that has a Docker. We&#8217;ve already talked about Jitsi Meet and told you that it&#8217;s a very interesting tool for making video calls. It&#8217;s shaping up [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-jitsi-meet-server-with-docker/">Deploy a Jitsi Meet server with Docker</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, folks. <strong>In this very short tutorial, I will show you how to deploy a Jitsi Meet server using Docker.</strong> This indicates that it will work for any system that has a Docker.</p>



<p><a href="https://www.osradar.com/video-conference-linux-jitsi-meet/" target="_blank" rel="noreferrer noopener">We&#8217;ve already talked about Jitsi Meet</a> and told you that it&#8217;s a very interesting tool for making video calls. It&#8217;s shaping up as an open-source option to services like Google Hangouts or the very fashionable Zoom.</p>



<p>Jitsi Meet has features that make it almost a premium application as support for HD Audio, full encryption of communication, and more. However, one of the main advantages of Jitsi is that we can install it on our server and use it privately as in an organization.</p>



<p>As you will see the process is so simple that it is scary but of course thanks to Docker it is quite customizable and you can adapt it to your needs. As always, we recommend that you do so.</p>



<p>So, let&#8217;s get to work.</p>



<h2>Deploy Jitsi Meet with Docker</h2>



<h3>Install Docker on Linux</h3>



<p>The first step is to install Docker and for that, we present you some tutorials in different Linux distributions.</p>



<ul><li>If you are using Ubuntu: <a href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 18.04?</a></li><li>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a></li><li>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a></li><li>If you use Windows: <a href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a></li><li>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></li></ul>



<p>And using your distribution’s package manager, you can install Docker Compose. For example:</p>



<pre class="wp-block-preformatted">:~$ sudo apt update
:~$ sudo apt install docker-compose</pre>



<p>For Debian, Ubuntu, and derivatives.</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install docker-compose</pre>



<p>Or, for RHEL, CentOS and derivatives.</p>



<p>Once Docker and Docker compose are installed now is the Gits turn.</p>



<h3>Install Git on Linux</h3>



<p>To download the Docker Compose file offered by Jitsi, we need Git. We also have several tutorials about it and you can read them according to your Linux distribution.</p>



<p><a href="https://www.osradar.com/install-git-on-debian-10/" target="_blank" rel="noreferrer noopener">Install Git on Debian 10</a><br><a href="https://www.osradar.com/install-the-latest-version-of-git-centos-8-rhel-oracle-linux/">How to install Git on CentOS 8</a><br><a href="https://www.osradar.com/how-to-install-git-on-windows-10/">Install Git on Windows?</a><br><a href="https://www.osradar.com/how-to-install-git-on-ubuntu-18-04-linux-mint-19/" target="_blank" rel="noreferrer noopener">Install Git on Ubuntu 18.04?</a></p>



<p>Now we can get started.</p>



<h3>Jitsi Meet server with Docker</h3>



<p>Now yes. Using Git we cloned Jitsi&#8217;s repository for Docker. These files already have a standard configuration for use by Docker Compose.</p>



<p>To do this, run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo git clone https://github.com/jitsi/docker-jitsi-meet.git /srv/jitsi
Cloning into '/srv/jitsi'…
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 1867 (delta 0), reused 0 (delta 0), pack-reused 1864
Receiving objects: 100% (1867/1867), 751.65 KiB | 441.00 KiB/s, done.
Resolving deltas: 100% (904/904), done.</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="859" height="188" src="https://www.osradar.com/wp-content/uploads/2020/05/1-15.png" alt="1.- Cloning the Jitsi files" class="wp-image-20522" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-15.png 859w, https://www.osradar.com/wp-content/uploads/2020/05/1-15-300x66.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-15-768x168.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/1-15-696x152.png 696w" sizes="(max-width: 859px) 100vw, 859px" /><figcaption>1.- Cloning the Jitsi files</figcaption></figure>



<p>As you can see in the command, we are indicating that the clone will be saved in <code>/srv/jitsi</code></p>



<p>Now we copy the <code>env.example</code> file that is inside that folder and transform it into the configuration file.</p>



<pre class="wp-block-preformatted">:~$ sudo cp /srv/jitsi/env.example /srv/jitsi/.env</pre>



<p>And now we proceed to edit it:</p>



<pre class="wp-block-preformatted">:~$ sudo nano /srv/jitsi/.env</pre>



<p>This file is quite large so to find the parameters we have to modify it is recommended to use the key combination CTRL + W and write the search parameter.</p>



<p>Essentially we have to modify the following parameters:</p>



<pre class="wp-block-preformatted">HTTP_PORT=80<br>HTTPS_PORT=443<br>TZ=your-timezione<br>PUBLIC_URL="https://your-server-IP"<br>DOCKER_HOST_ADDRESS=your-server-IP<br>ENABLE_HTTP_REDIRECT=1</pre>



<p>So,, if you are going to use Let&#8217;s Encrypt to secure the server, which should be obvious, then you have to modify these parameters as well:</p>



<pre class="wp-block-preformatted">ENABLE_LETSENCRYPT=1<br>LETSENCRYPT_DOMAIN=domain<br>LETSENCRYPT_EMAIL=email@domain</pre>



<p>And change:</p>



<pre class="wp-block-preformatted">PUBLIC_URL="https://your-server-IP"</pre>



<p>By:</p>



<pre class="wp-block-preformatted">PUBLIC_URL="https://your-domain"</pre>



<p>Finally, save the changes and close the file.</p>



<p>Access the folder where we have cloned all the files and start the installation:</p>



<pre class="wp-block-preformatted">:~$ cd /srv/jitsi/
:~$ sudo docker-compose up -d</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="539" src="https://www.osradar.com/wp-content/uploads/2020/05/2-19-1024x539.png" alt="2.- Deploy a Jitsi server with Docker" class="wp-image-20523" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-19-1024x539.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/2-19-300x158.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-19-768x404.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-19-696x367.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/2-19-1068x562.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/2-19.png 1335w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Deploy a Jitsi server with Docker</figcaption></figure>



<p>Now open your web browser and go to <code>https://your-domain</code> or <code>https://server-ip</code></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/05/3-16-1024x506.png" alt="3.- Jitsi Meet deployed " class="wp-image-20524" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-16-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/3-16-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-16-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/3-16-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/3-16-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/3-16.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Jitsi Meet deployed </figcaption></figure>



<p>This indicates that Jitsi Meet is ready to start work.</p>



<p>In my experience, it takes a server with good bandwidth and resources.</p>



<p>So, enjoy it. Do you see how easy it is to do?</p>



<h2>Conclusion</h2>



<p>Docker makes our lives much easier when it comes to deploying programs. In this case, we have shown you that doing it with Jitsi is quite simple and customizable.</p>



<p>Please share this post, join <a rel="noreferrer noopener" href="https://t.me/osradar" target="_blank">our Telegram </a>channel and if you can buy us a coffee 🙂</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-jitsi-meet-server-with-docker/">Deploy a Jitsi Meet server with Docker</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/deploy-jitsi-meet-server-with-docker/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy owncloud using Docker compose</title>
		<link>https://www.osradar.com/deploy-owncloud-using-docker-compose/</link>
					<comments>https://www.osradar.com/deploy-owncloud-using-docker-compose/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 06 Dec 2019 00:01:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker compose]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Owncloud]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16069</guid>

					<description><![CDATA[<p>Hello. In this post, I will teach you how to deploy Owncloud using Docker compose. It will be brief but explained step by step. Briefly, I will tell you that Docker compose is more thought of production environments where compatibility should be as high as possible. This is precisely the great advantage of Docker images [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-owncloud-using-docker-compose/">Deploy owncloud using Docker compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hello. In this post, I will teach you how to deploy Owncloud using Docker compose. It will be brief but explained step by step.</strong></p>
<p>Briefly, I will tell you that Docker compose is more thought of production environments where compatibility should be as high as possible. This is precisely the great advantage of Docker images that we will be able to use in any supported system thanks to the technology of containers. Then,<strong> these steps can be done from any Linux distribution that has installed </strong><a href="https://www.osradar.com/tag/docker/" target="_blank" rel="noreferrer noopener" aria-label="ocker  (opens in a new tab)"><strong>Docker </strong></a><strong>and Docker Compose.</strong></p>
<p><a href="https://owncloud.org/" target="_blank" rel="noopener noreferrer">Owncloud</a> is one of the best-known solutions to create our own private cloud as if it were a professional service. Of course, by this I do not mean that Owncloud is not professional, I mean that its behavior is similar to that of proprietary solutions such as <a href="https://www.osradar.com/install-odrive-on-ubuntu-18-04/" target="_blank" rel="noopener noreferrer">Google Drive</a> or <a href="https://www.osradar.com/sync-microsoft-onedrive-with-linux/" target="_blank" rel="noopener noreferrer">OneDrive</a>.</p>
<p>So let’s get to work.</p>
<h2>Install Docker and Docker Compose on Linux</h2>
<p>The first step is to have Docker installed in the system, obviously.</p>
<ul>
<li>If you are using Ubuntu: <a href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 18.04?</a></li>
<li>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a></li>
<li>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a></li>
<li>If you use Windows: <a href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a></li>
<li>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></li>
</ul>
<p>And using your distribution’s package manager, you can install Docker Compose. For example:</p>
<pre class="wp-block-preformatted">:~$ sudo apt docker-compose</pre>
<p>For Debian, Ubuntu, and derivatives.</p>
<pre class="wp-block-preformatted">:~$ sudo dnf install docker-compose</pre>
<p>Or, for RHEL, CentOS and derivatives.</p>
<h2>Deploy Owncloud using Docker compose</h2>
<p>Well, the first step is to create a new folder where we will do the process.</p>
<pre>:~$ mkdir owncloud<br>:~$ cd owncloud</pre>
<p>Then, in that folder create a new file called docker-compose.yml that contains all the instructions for deployment. When you create it, add the following:</p>
<pre>:~$ sudo nano docker-compose.yml</pre>
<pre>version: '3.1'<br><br>services:<br><br>  owncloud:<br>    image: owncloud<br>    restart: always<br>    ports:<br>      - 1234:80<br>    volumes:<br>      - /home/angelo/owncloud_data:/var/www/html<br>      - /home/angelo/owncloud_data/apps:/var/www/html/apps<br>      - /home/angelo/owncloud_data/config:/var/www/html/config<br>      - /home/angelo/owncloud_data/data:/var/www/html/data<br><br>  db:<br>    image: mariadb<br>    restart: always<br>    environment:<br>      MYSQL_ROOT_PASSWORD: angelo123</pre>
<figure id="attachment_16140" aria-describedby="caption-attachment-16140" style="width: 903px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-16140" src="https://www.osradar.com/wp-content/uploads/2019/11/1-21.png" alt="1.- Deploy Owncloud using Docker compose" width="903" height="469" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-21.png 903w, https://www.osradar.com/wp-content/uploads/2019/11/1-21-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/1-21-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/1-21-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/1-21-809x420.png 809w" sizes="(max-width: 903px) 100vw, 903px" /><figcaption id="caption-attachment-16140" class="wp-caption-text">1.- Deploy Owncloud using Docker compose</figcaption></figure>
<p>I proceed to explain.</p>
<p>In this file, we will raise two services. The first is the Owncloud. The image is configured for Owncloud to run on port 80, but I exposed port 1234. You can set the number you want but don&#8217;t touch 80.</p>
<p>Then come the volumes. The first part is folders on our host system to make sure the data is persistent.<strong> These folders must be created before the services are deployed.</strong></p>
<p>After this, comes the second service. By default, the Owncloud image is configured to use SQLite. But in this case, we have decided to use MariaDB. All simple just set up an initial key and you&#8217;re done.</p>
<p>Let us create the volume folders.</p>
<pre>:~$ mkdir /home/angelo/owncloud_data<br>:~$ mkdir /home/angelo/owncloud_data/apps<br>:~$ mkdir /home/angelo/owncloud_data/config<br>:~$ mkdir /home/angelo/owncloud_data/data</pre>
<p>Then, run Docker Compose.</p>
<pre>:~$ sudo docker-compose up -d</pre>
<p>That&#8217;s enough. Now open your web browser and go to <code>http://your-server:1234</code> and you will see the following. Create an admin account.</p>
<figure id="attachment_16141" aria-describedby="caption-attachment-16141" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-16141" src="https://www.osradar.com/wp-content/uploads/2019/11/2-20.png" alt="2.- Owncloud running" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-20.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/2-20-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-20-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/2-20-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-20-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/2-20-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-20-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/2-20-850x420.png 850w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-16141" class="wp-caption-text">2.- Owncloud running</figcaption></figure>
<p>Next, configure the Database.</p>
<figure id="attachment_16142" aria-describedby="caption-attachment-16142" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-16142" src="https://www.osradar.com/wp-content/uploads/2019/11/3-19.png" alt="3.- Configuring the owncloud database" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-19.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/3-19-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-19-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-19-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-19-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/3-19-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-19-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/3-19-850x420.png 850w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-16142" class="wp-caption-text">3.- Configuring the owncloud database</figcaption></figure>
<p>Finally, you&#8217;ll see the login screen and you are done. You can now use Owncloud.</p>
<h2>Conclusion</h2>
<p>Owncloud is a really useful application. And to deploy it using Docker compose is something easy and within everyone&#8217;s reach.</p>
<p>For more information on this, see the <a href="https://hub.docker.com/_/owncloud" target="_blank" rel="noopener noreferrer">official documentation of the Owncloud Docker image</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-owncloud-using-docker-compose/">Deploy owncloud using Docker compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/deploy-owncloud-using-docker-compose/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy MySQL using Docker Compose</title>
		<link>https://www.osradar.com/deploy-mysql-using-docker-compose/</link>
					<comments>https://www.osradar.com/deploy-mysql-using-docker-compose/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 20 Nov 2019 23:18:18 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[adminer]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Devops]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker compose]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15624</guid>

					<description><![CDATA[<p>Hello. In this post, I will teach you how to deploy MySQL using Docker compose. It will be brief but explained step by step. Briefly, I will tell you that Docker compose is more thought of production environments where compatibility should be as high as possible. This is precisely the great advantage of Docker images [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-mysql-using-docker-compose/">Deploy MySQL using Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hello. In this post, I will teach you how to deploy MySQL using Docker compose. It will be brief but explained step by step.</strong></p>
<p>Briefly, I will tell you that Docker compose is more thought of production environments where compatibility should be as high as possible. This is precisely the great advantage of Docker images that we will be able to use in any supported system thanks to the technology of containers. Then,<strong> these steps can be done from any Linux distribution that has installed </strong><a href="https://www.osradar.com/tag/docker/" target="_blank" rel="noreferrer noopener" aria-label="ocker  (opens in a new tab)"><strong>Docker </strong></a><strong>and Docker Compose.</strong></p>
<p>Remember that it is always possible to install MySQL on a server using your precompiled packages, we can easily have the latest version available.</p>
<p>For this tutorial, apart from MySQL, we will also deploy <a href="https://www.osradar.com/install-adminer-debian-10/" target="_blank" rel="noopener noreferrer">Adminer that we talked about earlier</a>. Together you will be able to manage a MySQL server without problems.</p>
<p>So let&#8217;s get to work.</p>
<h2>Install Docker and Docker Compose on Linux</h2>
<p>The first step is to have Docker installed in the system, obviously.</p>
<ul>
<li>If you are using Ubuntu: <a href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 18.04?</a></li>
<li>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a></li>
<li>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a></li>
<li>If you use Windows: <a href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a></li>
<li>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></li>
</ul>
<p>And using your distribution’s package manager, you can install Docker Compose. For example:</p>
<pre class="wp-block-preformatted">:~$ sudo apt docker-compose</pre>
<p>For Debian, Ubuntu and derivatives.</p>
<pre class="wp-block-preformatted">:~$ sudo dnf install docker-compose</pre>
<p>Or, for RHEL, CentOS and derivatives.</p>
<h2>Deploy MySQL using Docker Compose</h2>
<p>Well, it&#8217;s time to work. First create a folder called mysql and access it.</p>
<pre>:~$ mkdir mysql<br />:~$ cd mkdir</pre>
<p>Inside it, we will create the docker compose file called <code>docker-compose.yml</code>.</p>
<pre>:~$ nano docker-compose.yml</pre>
<p>Once you have created the file, you need to add the following content:</p>
<pre>version: '3.1'<br /><br />services:<br /><br />  db:<br />    image: mysql:latest<br />    command: --default-authentication-plugin=mysql_native_password<br />    restart: always<br />    environment:<br />      MYSQL_ROOT_PASSWORD: angelo123<br />      MYSQL_DATABASE: example<br />      MYSQL_USER: angelo<br />      MYSQL_PASSWORD: angelo123<br />    volumes:<br />      /home/angelo/mysqldata:/var/lib/mysql<br /><br />  adminer:<br />    image: adminer<br />    restart: always<br />    ports:<br />      - 8080:8080</pre>
<figure id="attachment_15687" aria-describedby="caption-attachment-15687" style="width: 870px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15687" src="https://www.osradar.com/wp-content/uploads/2019/11/1-12.png" alt="1.- Docker compose file to deploy MySQL" width="870" height="445" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-12.png 870w, https://www.osradar.com/wp-content/uploads/2019/11/1-12-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/1-12-768x393.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/1-12-696x356.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/1-12-821x420.png 821w" sizes="(max-width: 870px) 100vw, 870px" /><figcaption id="caption-attachment-15687" class="wp-caption-text">1.- Docker compose file to deploy MySQL</figcaption></figure>
<p>I now proceed to explain briefly.</p>
<p>First, we deploy a service called db that contains the information to install MySQL. First, we use the image of the latest version of MySQL. Inside the environment section we define the necessary variables to start the service. In this section, you define things<strong> like the password of the root user, the regular user and the user name as well as the name of the initial database.</strong></p>
<p>An important aspect is the volume that allows us to have access to the database in the host system. This folder must be created before the execution of the file.</p>
<p>In the end, we deploy Adminer using port 8080, obviously you can change this.</p>
<p>So, create the volume folder:</p>
<pre>:~$ mkdir /home/angelo/mysqldata</pre>
<p>Then, run Docker Compose.</p>
<pre>:~$ sudo docker-compose up -d</pre>
<figure id="attachment_15688" aria-describedby="caption-attachment-15688" style="width: 1039px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15688" src="https://www.osradar.com/wp-content/uploads/2019/11/2-12.png" alt="2.- Deploy MySQL using Docker compose" width="1039" height="716" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-12.png 1039w, https://www.osradar.com/wp-content/uploads/2019/11/2-12-300x207.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-12-768x529.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-12-1024x706.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/2-12-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/11/2-12-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/2-12-696x480.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-12-609x420.png 609w" sizes="(max-width: 1039px) 100vw, 1039px" /><figcaption id="caption-attachment-15688" class="wp-caption-text">2.- Deploy MySQL using Docker compose</figcaption></figure>
<p>So, now you can open your favorite web browser and go to <code>http://your-server:8080</code> to access Adminer. Remember that port has to be open in the firewall.</p>
<figure id="attachment_15689" aria-describedby="caption-attachment-15689" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15689" src="https://www.osradar.com/wp-content/uploads/2019/11/3-11.png" alt="3.- Adminer Working" width="1366" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-11.png 1366w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/3-11-858x420.png 858w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-15689" class="wp-caption-text">3.- Adminer Working</figcaption></figure>
<p>Now, type in your MySQL credentials and log in. These are the ones we define in the Docker compose file.</p>
<figure id="attachment_15690" aria-describedby="caption-attachment-15690" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15690" src="https://www.osradar.com/wp-content/uploads/2019/11/4-9.png" alt="4.- MySQL running using Docker Compose" width="1366" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/11/4-9.png 1366w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/4-9-858x420.png 858w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-15690" class="wp-caption-text">4.- MySQL running using Docker Compose</figcaption></figure>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>Docker is a technology with enormous potential. It helps a lot in the deployment of applications without many dependency problems. Today in this tutorial we have deployed MySQL and Adminer without many problems.</p>
<p>For more information about the use of the MySQL image, please consult the <a href="https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/docker-mysql-more-topics.html" target="_blank" rel="noopener noreferrer">official documentation.</a></p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-mysql-using-docker-compose/">Deploy MySQL using Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/deploy-mysql-using-docker-compose/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy MongoDB using Docker Compose</title>
		<link>https://www.osradar.com/deploy-mongodb-using-docker-compose/</link>
					<comments>https://www.osradar.com/deploy-mongodb-using-docker-compose/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 09 Nov 2019 01:30:59 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15313</guid>

					<description><![CDATA[<p>Hey, guys. This time, we will show you how to install MongoDB using Docker Compose. I have to admit that these last days I have liked much more the technology of Docker compose. It seems a very simple and fast way to install certain applications. However, from my point of view, a bit of flexibility [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-mongodb-using-docker-compose/">Deploy MongoDB using Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<strong>Hey, guys. This time, we will show you how to install MongoDB using Docker Compose.</strong>

I have to admit that these last days I have liked much more the technology of Docker compose. It seems a very simple and fast way to install certain applications. However, from my point of view, a bit of flexibility is lost in the configurations since they are images already created from a base. Of course, we will be able to configure some things but not everything.

In Osradar we have written several times about <a href="https://osradar.com/tag/mongodb/" target="_blank" rel="noopener noreferrer">MongoDB</a>. Not in vain is one of the <a href="https://www.osradar.com/tag/nosql/" target="_blank" rel="noopener noreferrer">NoSQL</a> database management systems based on the most popular documents out there. Widely used in mobile applications as well as in transactional systems, MongoDB stands out for its flexibility and query speed.

Fast, robust and high performance are some of the main features of MongoDB.

So, let us start.


<h2>Install Docker and Docker Compose on Linux</h2>
 

The first step is to have Docker installed in the system, obviously.

 
<ul>
 	<li>If you are using Ubuntu: <a href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 18.04?</a></li>
 	<li>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a></li>
 	<li>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a></li>
 	<li>If you use Windows: <a href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a></li>
 	<li>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></li>
</ul>
 

And using your distribution’s package manager, you can install Docker Compose. For example:

 
<pre class="wp-block-preformatted">:~$ sudo apt docker-compose</pre>
 

For Debian, Ubuntu and derivatives.

 
<pre class="wp-block-preformatted">:~$ sudo yum install docker-compose</pre>
 

Or, for RHEL, CentOS and derivatives.
<h2>Deploy MongoDB using Docker Compose</h2>
To display the Docker image of MongoDB, first I&#8217;m going to create a folder.

So open a terminal session and run:
<pre>:~$ mkdir mongodb
:~$ cd mongodb</pre>
<figure id="attachment_15336" aria-describedby="caption-attachment-15336" style="width: 663px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15336" src="https://www.osradar.com/wp-content/uploads/2019/11/1-2.png" alt="1.- Creating the folder for MongoDB" width="663" height="95" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-2.png 663w, https://www.osradar.com/wp-content/uploads/2019/11/1-2-300x43.png 300w" sizes="(max-width: 663px) 100vw, 663px" /><figcaption id="caption-attachment-15336" class="wp-caption-text">1.- Creating the folder for MongoDB</figcaption></figure>

Then, in the same folder create the docker-compose.yml file. And add the following content:
<pre>:~$ nano docker-compose.yml</pre>
<pre>version: '3.1'

services:

  mongo:
    image: mongo
    restart: always
    environment:
      MONGO_INITDB_DATABASE=example
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: example
    volumes:
      - /home/angelo/mongodata:/data/db

  mongo-express:
    image: mongo-express
    restart: always
    ports:
      - 8081:8081
    environment:
      ME_CONFIG_MONGODB_ADMINUSERNAME: root
      ME_CONFIG_MONGODB_ADMINPASSWORD: example</pre>
<figure id="attachment_15337" aria-describedby="caption-attachment-15337" style="width: 812px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15337" src="https://www.osradar.com/wp-content/uploads/2019/11/2-2.png" alt="2.- Deploy MongoDB using docker compose" width="812" height="457" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-2.png 812w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-746x420.png 746w" sizes="(max-width: 812px) 100vw, 812px" /><figcaption id="caption-attachment-15337" class="wp-caption-text">2.- Deploy MongoDB using docker compose</figcaption></figure>

In this file, two services are specified. Firstly, the one we are interested in is MongoDB. The definition is quite simple because you only have to configure as environment variables, the initial database, as well as the password and the root user.

The interesting thing is that I add a local folder <code>/home/angelo/mongodata</code> as volume so that it communicates with the container and thus to store the data. In other words, the database and collections will be stored in that folder. Obviously, specify the one you want but you must create it before making this file.

The second service is <code>mongo-express</code> which is a graphical interface built with NodeJS and express to manage MongoDB. There the important thing is that the execution port is <code>8081</code>. You can change it, obviously.

Then, we can &#8220;raise&#8221; the images. To do this, just use this command:
<pre>:~$ sudo docker-compose up -d</pre>
After that, open your web browser and go to <code>http://your-server:8081</code>

<figure id="attachment_15338" aria-describedby="caption-attachment-15338" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-15338 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/3-3.png" alt="3.- Mongo express and mongodb running" width="1354" height="668" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-3.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-851x420.png 851w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-15338" class="wp-caption-text">3.- Mongo express and mongodb running</figcaption></figure>

Next, you can for example, create a new database.

<figure id="attachment_15339" aria-describedby="caption-attachment-15339" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15339" src="https://www.osradar.com/wp-content/uploads/2019/11/4-3.png" alt="4.- Creating a new database " width="1365" height="668" srcset="https://www.osradar.com/wp-content/uploads/2019/11/4-3.png 1365w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-858x420.png 858w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-15339" class="wp-caption-text">4.- Creating a new database</figcaption></figure>

And create a new collection.

<figure id="attachment_15340" aria-describedby="caption-attachment-15340" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15340" src="https://www.osradar.com/wp-content/uploads/2019/11/5-2.png" alt="5.- MongoDB running using Docker compose" width="1354" height="668" srcset="https://www.osradar.com/wp-content/uploads/2019/11/5-2.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-851x420.png 851w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-15340" class="wp-caption-text">5.- MongoDB running using Docker compose</figcaption></figure>

So, everything is perfect.
<h2>Conclusion</h2>
MongoDB is a powerful database manager. Today we have learned to install it using Docker Compose. So how to use it a lot. Remember that installing it this way is recommended for servers and production systems and not so much for development.

<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-mongodb-using-docker-compose/">Deploy MongoDB using Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/deploy-mongodb-using-docker-compose/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
