arion: Switch to podman
This commit is contained in:
parent
57a8a2bab7
commit
a0a6f45a3a
1 changed files with 32 additions and 24 deletions
|
@ -3,43 +3,51 @@
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.arion
|
pkgs.arion
|
||||||
|
pkgs.docker-client
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker = {
|
docker.enable = false;
|
||||||
|
# docker = {
|
||||||
|
# enable = true;
|
||||||
|
# autoPrune = {
|
||||||
|
# enable = true;
|
||||||
|
# flags = [ "--all" ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoPrune = {
|
dockerSocket.enable = true;
|
||||||
enable = true;
|
defaultNetwork.dnsname.enable = true;
|
||||||
flags = [ "--all" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
oci-containers = {
|
oci-containers = {
|
||||||
backend = "docker";
|
backend = "docker";
|
||||||
|
|
||||||
containers.watchtower = {
|
# containers.watchtower = {
|
||||||
image = "containrrr/watchtower";
|
# image = "containrrr/watchtower";
|
||||||
environment = {
|
# environment = {
|
||||||
WATCHTOWER_POLL_INTERVAL = "21600";
|
# WATCHTOWER_POLL_INTERVAL = "21600";
|
||||||
WATCHTOWER_LABEL_ENABLE = "true";
|
# WATCHTOWER_LABEL_ENABLE = "true";
|
||||||
WATCHTOWER_NOTIFICATIONS = "shoutrrr";
|
# WATCHTOWER_NOTIFICATIONS = "shoutrrr";
|
||||||
WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName;
|
# WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName;
|
||||||
WATCHTOWER_NOTIFICATION_URL = secret.watchtower.ntfyUrl;
|
# WATCHTOWER_NOTIFICATION_URL = secret.watchtower.ntfyUrl;
|
||||||
};
|
# };
|
||||||
volumes = [
|
# volumes = [
|
||||||
"/var/run/docker.sock:/var/run/docker.sock"
|
# "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
"/root/.docker/config.json:/config.json:ro"
|
# "/root/.docker/config.json:/config.json:ro"
|
||||||
];
|
# ];
|
||||||
extraOptions = [
|
# extraOptions = [
|
||||||
"--label=com.centurylinklabs.watchtower.enable=true"
|
# "--label=com.centurylinklabs.watchtower.enable=true"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
arion = {
|
arion = {
|
||||||
backend = "docker";
|
backend = "podman";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.interfaces."docker0".allowedTCPPorts = [ 443 ];
|
# networking.firewall.interfaces."docker0".allowedTCPPorts = [ 443 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue