nixos/hosts/lab/dokuwiki.nix
lew 102b195d27 use dedicated podman user for rootless containers
Adds a system user 'podman' (uid 900) with subuid/subgid ranges
and linger for running OCI containers. Removes podman-specific
settings from lew user. DokuWiki switches to sdnotify=healthy
since the image has a built-in healthcheck.
2026-04-04 23:53:32 +01:00

25 lines
589 B
Nix

{ ... }:
{
services.caddy.virtualHosts."wiki.ily.rs" = {
extraConfig = ''
reverse_proxy localhost:8070
encode zstd gzip
'';
};
virtualisation.oci-containers.containers.dokuwiki = {
image = "lscr.io/linuxserver/dokuwiki:2025-05-14b-ls299";
podman.user = "podman";
podman.sdnotify = "healthy";
environment = {
PUID = "1000";
PGID = "1000";
TZ = "Europe/London";
};
volumes = [
"/srv/dokuwiki/config:/config"
"/srv/dokuwiki/cont-init.d:/custom-cont-init.d:ro"
];
ports = [ "127.0.0.1:8070:80" ];
};
}