arion: Improvements to podman setup
This commit is contained in:
parent
32ac241aca
commit
b949f5e9c7
1 changed files with 37 additions and 9 deletions
|
@ -10,23 +10,51 @@
|
||||||
|
|
||||||
podman = {
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dockerSocket.enable = true;
|
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
|
||||||
|
dockerSocket.enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
|
||||||
|
autoPrune = {
|
||||||
|
enable = true;
|
||||||
|
dates = "weekly";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
containers.containersConf.cniPlugins = with pkgs; [
|
# containers.containersConf.cniPlugins = with pkgs; [
|
||||||
cni-plugins
|
# cni-plugins
|
||||||
dnsname-cni
|
# dnsname-cni
|
||||||
];
|
# ];
|
||||||
|
|
||||||
oci-containers.backend = "podman";
|
oci-containers = {
|
||||||
|
backend = "podman";
|
||||||
|
|
||||||
|
containers.watchtower = {
|
||||||
|
image = "ghcr.io/containrrr/watchtower:latest";
|
||||||
|
environment = {
|
||||||
|
WATCHTOWER_POLL_INTERVAL = "21600";
|
||||||
|
WATCHTOWER_LABEL_ENABLE = "true";
|
||||||
|
WATCHTOWER_NOTIFICATIONS = "shoutrrr";
|
||||||
|
WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName;
|
||||||
|
WATCHTOWER_NOTIFICATION_URL = secret.watchtower.ntfyUrl;
|
||||||
|
};
|
||||||
|
volumes = [
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
];
|
||||||
|
extraOptions = [
|
||||||
|
"--label=com.centurylinklabs.watchtower.enable=true"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
arion = {
|
arion = {
|
||||||
backend = "podman-socket";
|
backend = "podman-socket";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.interfaces."podman1".allowedUDPPorts = [ 53 ];
|
networking.firewall.interfaces."podman+" = {
|
||||||
networking.firewall.interfaces."podman2".allowedUDPPorts = [ 53 ];
|
allowedUDPPorts = [ 53 ];
|
||||||
networking.firewall.interfaces."podman3".allowedUDPPorts = [ 53 ];
|
allowedTCPPorts = [ 53 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue