Skip to main content

Podman

Info

This method is supported by Plumber community.

This page describes how to set up a self-managed instance of Plumber using podman, for both production servers and local testing.

💻 Requirements

Docker hub registry must be resolved by podman in file /etc/containers/registries.conf:

/etc/containers/registries.conf
unqualified-search-registries = ["docker.io"]

🛠️ Installation

⏫ Update

🔄 Backup and restore

Data required to fully backup and restore a Plumber system are the following:

  • Configuration file: .env
  • Databases:
    • PostgreSQL database of Jobs service
  • Files data:
    • File storing data about certificate for Traefik service

All these data can be easily backup and restored using 2 scripts from the installation git repository:

  • scripts/backup_podman.sh
  • scripts/restore_podman.sh

💽 Backup

To backup the system, go to your installation git repository and run the following command:

Terminal window
./scripts/backup_podman.sh 13

The script will create a backups directory and create a backup archive inside it prefixed with the date (backup_plumber-$DATE)

Info

You can use a cron job to perform regular backups. Here is a cron job that launch a backup every day at 2am:

Terminal window
0 2 * * * /plumber-platform/scripts/backup_podman.sh 13

It can be added to your crontab with the command crontab -e. Check more information about cron jobs here.

🛳️ Restore

To restore a backup from scratch on a new system, follow this process:

  1. Be sure that your new system is compliant with requirements

  2. Copy the backup file on your new server

  3. Clone the installation repository

    Terminal window
    git clone https://github.com/getplumber/platform.git plumber-platform
    cd plumber-platform
  4. If the IP address of your server changed from your previous installation, update your DNS records

  5. Launch the restore script

    Terminal window
    ./scripts/restore_podman.sh 13 <path_to_your_backup_file>

Danger

Did you encounter a problem during the restore process ? See the troubleshooting section.