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 = {
|
||||
enable = true;
|
||||
dockerSocket.enable = true;
|
||||
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
|
||||
dockerSocket.enable = true;
|
||||
dockerCompat = true;
|
||||
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
};
|
||||
|
||||
containers.containersConf.cniPlugins = with pkgs; [
|
||||
cni-plugins
|
||||
dnsname-cni
|
||||
];
|
||||
# containers.containersConf.cniPlugins = with pkgs; [
|
||||
# cni-plugins
|
||||
# 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 = {
|
||||
backend = "podman-socket";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.interfaces."podman1".allowedUDPPorts = [ 53 ];
|
||||
networking.firewall.interfaces."podman2".allowedUDPPorts = [ 53 ];
|
||||
networking.firewall.interfaces."podman3".allowedUDPPorts = [ 53 ];
|
||||
networking.firewall.interfaces."podman+" = {
|
||||
allowedUDPPorts = [ 53 ];
|
||||
allowedTCPPorts = [ 53 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue