Page cover image

Portainer and GitOps

Time Required

1 - 2 Hours

Difficulty

Low

Come across an issue with this documentation? You can make an edit request yourself, using the 'Submit Change' button on the left, or report it on our Discord

The Scenario

Our goal is to make use of GitOps (a variation of DevOps, using GitHub) to have a infrastructure-as-code set up, allowing us to easily manage and deploy changes with minimal touch and 1 source of truth.

Whilst Portainer is a GUI based application, it can read code from GitHub which allows it to automatically push changes based on our code.

The lifecycle of the container (starting, stopping and deleting) is still managed via the Portainer GUI.

Prerequisites

  • A server

  • A GitHub account

  • Multiple Servers

  • Ubuntu Server for the OS

Last updated