This guide explains how to set up Podman for running PostgreSQL and the Sylvan Backend.
For Debian/Ubuntu:
sudo apt update && sudo apt install podman -yFor Fedora:
sudo dnf install podman -yFor Arch Linux:
sudo pacman -S podmanpodman run -d \
--name sylvan-db \
-e POSTGRES_USER=username \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=database_name \
-v /absolute/path:/var/lib/postgresql/data \
-p 5432:5432 \
postgres-
Build the Container Image: Create a container specific configuration
container.ini. Refer docs/config.inipodman build -t sylvan-backend . -
Run the Application:
podman run -p 5000:5000 --env-file env.development sylvan-backend:latest
-
Verify Running Containers:
podman ps
API can be accessed at http://127.0.0.1:5000