- systemd
- podman
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.serviceEdit piwigo.container :
- PublishPort=8080:80
+ PublishPort=12345:80Bind 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:zAnd edit piwigo-db.container :
- Volume=./piwigo-data/mysql:/var/lib/mysql:z
+ Volume=%h/PiwigoPod/mysql:/var/lib/mysql:zStop 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.serviceAccess 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.