<?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>Podman &#8211; Made For Cloud</title>
	<atom:link href="https://madeforcloud.com/category/podman/feed/" rel="self" type="application/rss+xml" />
	<link>https://madeforcloud.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 09 Jul 2022 06:02:41 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>phpIPAM via podman-compose</title>
		<link>https://madeforcloud.com/2022/07/09/phpipam-via-podman-compose/</link>
					<comments>https://madeforcloud.com/2022/07/09/phpipam-via-podman-compose/#respond</comments>
		
		<dc:creator><![CDATA[gocallag]]></dc:creator>
		<pubDate>Sat, 09 Jul 2022 06:00:46 +0000</pubDate>
				<category><![CDATA[Podman]]></category>
		<guid isPermaLink="false">http://168.138.6.194/?p=136</guid>

					<description><![CDATA[You can use containers inside container orchestration platforms and of course you can do that with phpIPAM as well, but in my case I just wanted the convenience of the container packaging approach and running it on a single Linux host without having to worry about the overheads of K8S style platforms. I was using&#8230;<p><a class="more-link" href="https://madeforcloud.com/2022/07/09/phpipam-via-podman-compose/" title="Continue reading &#8216;phpIPAM via podman-compose&#8217;">Continue reading <span class="meta-nav">&#8594;</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>You can use containers inside container orchestration platforms and of course you can do that with phpIPAM as well, but in my case I just wanted the convenience of the container packaging approach and running it on a single Linux host without having to worry about the overheads of K8S style platforms.</p>



<p>I was using a RHEL derivative, Alma Linux 9.0 in this case and also using Podman rather than Docker.</p>



<p>I did want to use the docker-compose approach to configuring and maintaining the application. The compose format makes it really quite simple to deploy and maintain simple container applications that are single system hosted.</p>



<p>Since I wasn&#8217;t using Docker, rather Podman, I found that you can use a tool called podman-compose to orchestrate podman to deliver the outcome you&#8217;d expect from a docker-compose file.</p>



<p>Firstly, start like this, getting podman and pip3 installed.</p>



<pre class="wp-block-code"><code> yum install podman python3-pip</code></pre>



<p>Then it&#8217;s simple to install podman-compose</p>



<pre class="wp-block-code"><code>pip3 install podman-compose</code></pre>



<p>With a docker-compose.yml file similar to the following (change the default passwords i&#8217;ve put in the file) you can get going very quickly.</p>



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

services:
  phpipam-web:
    image: docker.io/phpipam/phpipam-www:latest
    ports:
      - "80:80"
    environment:
      - TZ=Australia/Melbourne
      - IPAM_DATABASE_HOST=phpipam-mariadb
      - IPAM_DATABASE_USER=root
      - IPAM_DATABASE_PASS=&lt;mysql_root_pass&gt;
    restart: unless-stopped
    volumes:
      - phpipam-logo:/phpipam/css/images/logo
    depends_on:
      - phpipam-mariadb

  phpipam-mariadb:
    image: docker.io/library/mariadb:latest
    environment:
      - MARIADB_ROOT_PASSWORD=&lt;mysql_root_pass&gt;
    restart: unless-stopped
    volumes:
      - phpipam-db-data:/var/lib/mysql

volumes:
  phpipam-db-data:
  phpipam-logo:</code></pre>



<p>Then it&#8217;s as simple as</p>



<pre class="wp-block-code"><code>podman-compose up -d</code></pre>



<p>Then you connect to the IP address of your underlying system, and execute the installation dialogue.  You should only need to enter the MySQL/MariaDB username / password, everything else should be pre-filled with the correct information.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="629" height="567" src="http://168.138.6.194/wp-content/uploads/2022/07/image-2-1.png" alt="" class="wp-image-141" srcset="https://madeforcloud.com/wp-content/uploads/2022/07/image-2-1.png 629w, https://madeforcloud.com/wp-content/uploads/2022/07/image-2-1-300x270.png 300w" sizes="(max-width: 629px) 100vw, 629px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://madeforcloud.com/2022/07/09/phpipam-via-podman-compose/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
