feat(servers): setup podman autoupdate.

This commit is contained in:
CronyAkatsuki 2025-11-01 11:46:14 +01:00
parent 6cefec7b26
commit 49351504e4
7 changed files with 27 additions and 2 deletions

View file

@ -8,6 +8,9 @@
"19132:19132" "19132:19132"
"25500-25600:25500-25600" "25500-25600:25500-25600"
]; ];
labels = {
"io.containers.autoupdate" = "registry";
};
volumes = [ volumes = [
"/var/lib/crafty-controller/backups:/crafty/backups" "/var/lib/crafty-controller/backups:/crafty/backups"
"/var/lib/crafty-controller/logs:/crafty/logs" "/var/lib/crafty-controller/logs:/crafty/logs"

View file

@ -14,6 +14,13 @@
defaultNetwork.settings.dns.enable = true; defaultNetwork.settings.dns.enable = true;
}; };
}; };
# Enable system podman autoupdate timer
systemd.timers.podman-auto-update = {
enable = true;
wantedBy = ["timers.target"];
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
podman-compose podman-compose
podman-tui podman-tui

View file

@ -5,6 +5,9 @@
ports = [ ports = [
"8282:8282" "8282:8282"
]; ];
labels = {
"io.containers.autoupdate" = "registry";
};
volumes = [ volumes = [
"/var/lib/syncyomi:/config" "/var/lib/syncyomi:/config"
]; ];

View file

@ -8,6 +8,9 @@
environment = { environment = {
"SYMFONY__ENV__DOMAIN_NAME" = "https://wallabag.cronyakatsuki.xyz"; "SYMFONY__ENV__DOMAIN_NAME" = "https://wallabag.cronyakatsuki.xyz";
}; };
labels = {
"io.containers.autoupdate" = "registry";
};
volumes = [ volumes = [
"/var/lib/wallabag/data:/var/www/wallabag/data" "/var/lib/wallabag/data:/var/www/wallabag/data"
"/var/lib/wallabag/images:/var/www/wallabag/web/assets/images" "/var/lib/wallabag/images:/var/www/wallabag/web/assets/images"

View file

@ -5,6 +5,9 @@
ports = [ ports = [
"8001:80" "8001:80"
]; ];
labels = {
"io.containers.autoupdate" = "registry";
};
volumes = [ volumes = [
"/var/lib/website:/usr/share/nginx/html:ro" "/var/lib/website:/usr/share/nginx/html:ro"
]; ];

View file

@ -1,6 +1,6 @@
{ {
virtualisation.oci-containers.containers.homeassistant = { virtualisation.oci-containers.containers.homeassistant = {
image = "homeassistant/home-assistant:stable"; image = "docker.io/homeassistant/home-assistant:stable";
autoStart = true; autoStart = true;
ports = [ ports = [
"8123:8123" "8123:8123"
@ -13,6 +13,9 @@
NET_ADMIN = true; NET_ADMIN = true;
NET_RAW = true; NET_RAW = true;
}; };
labels = {
"io.containers.autoupdate" = "registry";
};
extraOptions = ["--network=host"]; extraOptions = ["--network=host"];
volumes = [ volumes = [
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"

View file

@ -1,10 +1,13 @@
{ {
virtualisation.oci-containers.containers.wallos = { virtualisation.oci-containers.containers.wallos = {
image = "bellamy/wallos:latest"; image = "docker.io/bellamy/wallos:latest";
autoStart = true; autoStart = true;
ports = [ ports = [
"8282:80/tcp" "8282:80/tcp"
]; ];
labels = {
"io.containers.autoupdate" = "registry";
};
volumes = [ volumes = [
"/var/lib/wallos/db:/var/www/html/db" "/var/lib/wallos/db:/var/www/html/db"
"/var/lib/wallos/logos:/var/www/html/images/uploads/logos" "/var/lib/wallos/logos:/var/www/html/images/uploads/logos"