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

17 lines
353 B
Nix
Raw Normal View History

2024-10-01 12:52:39 -04:00
{
virtualisation = {
containers.enable = true;
podman.enable = true;
oci-containers.containers = {
postgres = {
image = "docker.io/library/postgres:15";
volumes = [ "postgres-15:/var/lib/postgresql/data" ];
extraOptions = [
"--pull=newer"
"--network=www"
];
};
};
};
}