• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Architect

  • Network Automation
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Inventory Example
    • Python Network Automation
      • Nornir
      • Python Network Automation Course
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox
      • Infrahub
      • NautoBot
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

How to Install Infrahub

Home » Network Automation » Infrahub

Infrahub is a new source of truth from Opsmill, that allows you to create your own Schema. This means you are in control of the data model, which gives network engineers unlimited options for how their source of truth is built. But first we need to install it!

There are a few options to install Infrahub detailed on Infrahub Documentation page but for this rest of this post I am going to detail the method that worked best for me.

Installing Infrahub on an Ubuntu 22.04 Server

InfraHub Install Guide

Infrahub runs as a docker container, so you need to have Docker installed on your machine.

The quickest way to get Infrahub installed is to just run this command

curl https://infrahub.opsmill.io | sudo docker compose -p infrahub -f - up -d

Once all the images have been pulled, you should see Running 9/9 and all objects showing as healthy

how to install infrahub

Then point your browser to http://<server-ip>:8000

If you already have something running on port 8000 you will need to clone the repo and then go into the docker-compose.yml file and change the port number

This is my preferred method of installing Infrahub

Clone the repo

You can clone the Infrahub Repo from this link

git clone --recursive --depth 1 https://github.com/opsmill/infrahub.git
git clone the infrahub repo

Once you have cloned the repo, go into the infrahub folder and run

docker compose up -d 
install infrahub docker compose up

The benefit of using this method is if you have another application using port 8000 you can change this in the docker-compose.yml file

change infrahub port

This is the standard installation, if you want to change the port you need to change the inside port number

So in my case I will change 8000 to 8040 – so the line will look like this

change infrahub port

You should now be able to access your infrahub on http://<server-ip>:8040

Infrahub Default Password

The default login credentials for infrahub are username: admin password: infrahub

Infrahub Install Documentation

https://docs.infrahub.app/guides/installation

If your install is not as easy as this drop a comment below or check out the official documentation

Table of Contents

  • InfraHub Install Guide
  • Clone the repo
  • Infrahub Default Password
  • Infrahub Install Documentation
Category: Infrahub
ansible course for network engineers
Get Access to my Ansible Course NOW
Previous Post:Getting Started with NetBox
Next Post:Pynetbox

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

python course for network engineers

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2025 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms