Podman Compose is an alternative way to run Infisical using Podman as a replacement for Docker. Podman is backwards compatible with Docker Compose files.Prerequisites
This Docker Compose configuration is not designed for high-availability production scenarios.
It includes just the essential components needed to set up an Infisical proof of concept (POC).
To run Infisical in a highly available manner, give the Docker Swarm guide. Verify prerequisites
To verify that Podman compose and Podman are installed on the machine where you plan to install Infisical, run the following commands.Check for podman installationCheck for podman compose installationDownload Docker Compose file
You can obtain the Infisical docker compose file by using a command-line downloader such as wget or curl.
If your system doesn’t have either of these, you can use a equivalent command that works with your machine.curl -o docker-compose.prod.yml https://raw.githubusercontent.com/Infisical/infisical/main/docker-compose.prod.yml
wget -O docker-compose.prod.yml https://raw.githubusercontent.com/Infisical/infisical/main/docker-compose.prod.yml
Infisical requires a set of credentials used for connecting to dependent services such as Postgres, Redis, etc.
The default credentials can be downloaded using the one of the commands listed below. curl -o .env https://raw.githubusercontent.com/Infisical/infisical/main/.env.example
wget -O .env https://raw.githubusercontent.com/Infisical/infisical/main/.env.example
Make sure to rename the .env.example file to .env before starting Infisical. Additionally it’s important that the .env file is in the same directory as the docker-compose.prod.yml file.
Setup Podman
Run the commands below to setup Podman for first time use.podman machine init --now
podman machine set --rootful
podman machine start
If you are using a rootless podman installation, you can skip the podman machine set --rootful command.
Start Infisical
Run the command below to start Infisical and all related services.podman-compose -f docker-compose.prod.yml up