<?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>Portainer &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/portainer/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Thu, 11 Mar 2021 09:17:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Portainer &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Install Portainer on Ubuntu 20.04 using Docker</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-portainer-on-ubuntu-20-04-using-docker/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-portainer-on-ubuntu-20-04-using-docker/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 11 Mar 2021 09:17:43 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=3339</guid>

					<description><![CDATA[Portainer is a versatile tool that focuses on open source container management for Kubernetes, Docker, Docker Swarm, and also Azure ACI. Thanks to this tool, you can easily deploy and manage containers without writing any code. The official website describes it as a tool that you can use to configure [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://www.portainer.io/">Portainer</a></strong> is a versatile tool that focuses on open source container management for Kubernetes, Docker, Docker Swarm, and also Azure ACI. Thanks to this tool, you can easily deploy and manage containers without writing any code. The official <a href="https://www.portainer.io/"><strong>website</strong></a> describes it as a tool that you can use to configure and manage environments, deploy applications, monitor application performance, and sort issues.<br>In order to install Portainer on Ubuntu 20.04, it is recommended to create a container first.</p>



<h2 id="container-creation" >Container creation</h2>



<p>Create a directory for portainer to store data. Then you need to create a portainer container. This can be done with the following commands:</p>



<pre class="wp-block-code"><code>mkdir -p /vol/portainer/data
docker run --restart always -d --name=portainer -v /var/run/docker.sock:/var/run/docker.sock -v /vol/portainer/data:/data -e VIRTUAL_HOST=port.example.com -e VIRTUAL_PORT=9000 portainer/portainer-ce -H unix:///var/run/docker.sock</code></pre>



<p>After successfully creating the container, you need to configure a reverse <strong>proxy</strong>.</p>



<h2 id="configuring-a-reverse-proxy-for-portainer" >Configuring a Reverse Proxy for Portainer</h2>



<p><strong><a href="https://caddyserver.com/docs/caddyfile">Caddy</a></strong> is a lightweight ZeroSSL reverse proxy server. Caddy simplifies your infrastructure. It takes care of renewing TLS certificates, OCSP stapling, serving static files, reverse proxying, Kubernetes login and more. This means you don&#8217;t have to go through a complex HTTPS configuration, it receives and automatically maintains SSL certificates. In this tutorial, Caddy serves a very important function &#8211; it is used as a Portainer reverse proxy. To create a CaddyFile, you need to run the following command:</p>



<pre class="wp-block-code"><code>mkdir -p /vol/caddy/configs
nano /vol/caddy/configs/Caddyfile</code></pre>



<p>Then you need to supplement with the text that is indicated below:</p>



<pre class="wp-block-code"><code>port.example.com {
    tls youremail@example.com
    reverse_proxy portainer:8000</code></pre>



<blockquote class="wp-block-quote"><p>Note</p></blockquote>



<p><strong>port.example.com {</strong> &#8211; <em>is your domain, which has the correct DNS record for your VPS</em></p>



<p><strong>tls youremail@example.com</strong> &#8211; <em>applying free security certificates and using this email to get Let&#8217;s Encrypt reminders</em></p>



<h2 id="creating-a-caddy-container" >Creating a Caddy Container</h2>



<p>After successlully creating the <strong>CaddyFile</strong>, create a container using the following command:</p>



<pre class="wp-block-code"><code>docker run --restart always -d -p 80:80 -p 443:443 -v "/vol/caddy/data:/data/caddy" -v "/vol/caddy/configs:/etc/caddy" --link portainer --name caddy caddy</code></pre>



<blockquote class="wp-block-quote"><p>Note</p></blockquote>



<p><strong>-v &#8220;/ vol / caddy / data: / data / caddy&#8221;</strong> it&#8217;s a mount the caddy working directory on your host to save data such as certificates</p>



<p><br><strong>&#8211;link portainer </strong>to link the caddy container, the portainer so they can access each other</p>



<h2 id="installation-of-portainer" >Installation of Portainer</h2>



<p>Visit your domain in a web browser and set your appropriate password. After that, it is assumed that the installation is complete</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-portainer-on-ubuntu-20-04-using-docker/feed/</wfw:commentRss>
			<slash:comments>459</slash:comments>
		
		
			</item>
	</channel>
</rss>
