Cyril

Quadlets! podman strikes for real this time.

Quadlets are a native Podman feature that allow users to manage containers as systemd services without manually writing complex unit files.
They function by using declarative configuration files (ending in .container, .pod, etc.)
The podman-system-generator automatically converts these high-level declarative files into standard systemd .service files during boot or when systemctl daemon-reload is executed.

(( jump to configs ))

Docker (un-needed)

Because Quadlets integrate directly with the systemd init system, they eliminate the need for Docker’s daemon or wrapper tools like podman-compose.
This allows management of container lifecycles (auto-start on boot, restart on failure, logging) using native Linux service management commands like systemctl,
making Docker a completely optional dependency.

Benefits:

Drawbacks:

The user way (unprivileged is safest)

System setup

filesystem structure

/home/containers/ # constant write config data on ssd or nvme
  ├── .config/
  │   └── containers/
  │       └── systemd/ # symbolically link the unit files directory
  │           ├── immich -> ../../../immich/quadlets
  │           ├── jellyfin -> ../../../jellyfin/quadlets
  │           └── transmission -> ../../../transmission/quadlets
  │
  ├── immich/
  │    ├── backups/
  │    ├── postgres/
  │    ├── model-cache/
  │    └── quadlets/
  │        ├── immich.pod
  │        ├── immich-server.container
  │        ├── immich-machine-learning.container
  │        ├── immich-database.container
  │        ├── immich-valkey.container
  │        └── immich.env
  │
  ├── jellyfin/
  │    ├── backups/
  │    ├── cache/
  │    ├── config/
  │    └── quadlets/
  │        └── jellyfin.container
  │
  └── transmission/
       ├── backups/
       ├── config/
       └── quadlets/
           └── transmission.container


/srv/media/ # for storage data on spinning platter disks
  ├── pictures/          existing photo collection
  └── immich/            media uploaded and managed by Immich

Process

Some services need a password, and instead of typing the password into one of the quadlet INI’s, we will store it as a “podman secret”

printf 'password' | podman secret create immich_db_pass -

Then add a line in the particular service that needs the password (ex:)

Secret=immich_db_pass,type=env,target=POSTGRES_PASSWORD

Configs (Working):

Jellyfin

Samba

Transmission

immich-pod

printf 'password' | podman secret create immich_db_pass -