<?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>Ampache Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ampache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 25 May 2021 21:14:25 +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>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>
	</channel>
</rss>
