Quadlets for creating a simple Linkwarden pod intended to be ran as an unprivileged podman user.
This configuration will restart on failure, start at boot, and automatically pull the latest image on restart
This assumes that your host UUID is 1000. If it is different make sure to update references accordingly.
echo '< database url >' | podman secret create linkwarden_pg_db_url -
echo '< database password >' | podman secret create linkwarden_pg_password -
echo '< nextauth url >' | podman secret create linkwarden_pg_nextauth_url -
echo '< nextauth secret >' | podman secret create linkwarden_pg_nextauth_secret -
echo 'postgresql://postgres:<yourpassword>@localhost:5432/linkwarden' | podman secret create linkwarden_pg_db_url -
echo '<yourpassword>' | podman secret create linkwarden_pg_nextauth_secret -
echo 'http://localhost:3000/api/v1/auth' | podman secret create linkwarden_pg_nextauth_url -
echo '<yourpassword>' | podman secret create linkwarden_pg_password -
Make sure these paths exist! Podman will not create these for you
mkdir -p $XDG_CONFIG_HOME/containers/systemd
-
Copy both
.container
files and the.pod
file to$XDG_CONFIG_HOME/containers/systemd
cp *container *pod $XDG_CONFIG_HOME/containers/systemd
-
Make systemd aware of the new files
systemctl --user daemon-reload
systemctl --user start linkwarden
systemctl --user stop linkwarden-pod
will stop all containers
- https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html
- https://docs.linkwarden.app/self-hosting/installation
- File issues
- Ask questions
- Submit PRs
- Suggest features