nix-configs/nixos-modules/docker-forgejo.nix

26 lines
559 B
Nix
Raw Permalink Normal View History

2024-10-01 17:42:47 -04:00
{
virtualisation = {
containers.enable = true;
podman.enable = true;
oci-containers.containers = {
forgejo = {
2024-10-16 18:02:04 -04:00
image = "codeberg.org/forgejo/forgejo:9";
2024-10-01 17:42:47 -04:00
volumes = [
"forgejo-data:/data"
"/etc/localtime:/etc/localtime:ro"
];
labels = {
swag = "enable";
swag_url = "git.icanttype.org";
swag_port = "3000";
};
ports = [ "10022:22" ];
extraOptions = [
"--pull=newer"
"--network=www"
];
};
};
};
}