Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 1.88 KB

File metadata and controls

75 lines (52 loc) · 1.88 KB

Piwigo podman (Quadlet)

Requirements

  • systemd
  • podman

Usage

Create /etc/containers/systemd/piwigo/ and copy each quadlet units files in it.

/etc/containers/systemd/piwigo/
    ├── piwigo-db.container
    ├── piwigo.container
    └── piwigo.network

Reload systemd units and start the service :

sudo systemctl daemon-reload
sudo systemctl start piwigo.service

Changing the exposed port :

Edit piwigo.container :

- PublishPort=8080:80
+ PublishPort=12345:80

Changing bind-mounts

Bind mounts are links between the host filesystem and the containers.
Systemd placeholder are valid in quadlets, %h is match the container user home (/root/) see the documentation

Edit piwigo.container :

- Volume=./piwigo-data/piwigo:/var/www/html/piwigo:z
- Volume=./piwigo-data/scripts:/usr/local/bin/scripts:z
+ Volume=%h/PiwigoPod/piwigo:/var/www/html/piwigo:z
+ Volume=%h/PiwigoPod/scripts:/usr/local/bin/scripts:z

And edit piwigo-db.container :

- Volume=./piwigo-data/mysql:/var/lib/mysql:z
+ Volume=%h/PiwigoPod/mysql:/var/lib/mysql:z

Updating

Stop and restart your containers, podman should pull an updated image automatically.

sudo systemctl stop piwigo.service piwigo-db.service
sudo systemctl daemon-reload
sudo systemctl start piwigo.service

Diagnosing errors

Access the systemd journal sudo journalctl -eu piwigo.service, most common errors are permision issues.
Ensure that your volume is in a valid location and has read and write permisions.

Documentation