Building image:
podman build -t calibre .
Running:
podman run --rm \
-e CALIBRE_USER=<user> \
-e CALIBRE_PASS=<password> \
-p 8787:8080 \
--userns keep-id \
-v <path-to-libraries>:/home/calibre/libraries \
calibre
After that server should be available at http://localhost:8787/
sudo ufw allow 8787 comment "Calibre Server"
Modify calibre-server.service
and put it at ~/.config/systemd/user/
directory.
Reload the daemon:
systemctl --user daemon-reload
Run service:
systemctl --user start calibre-server.service
Enable service:
systemctl --user enable calibre-server.service