Files
system-config/system/hosts/mcp/containers/shared-postgres.nix

17 lines
335 B
Nix

# Shared Postgres Database
{ ... }:
{
virtualisation.oci-containers.db = {
image = "docker.io/postgres:16-alpine";
autoStart = true;
volumes = [
# TODO: move to faster storage?
"/tank/db:/var/lib/postgresql/data"
];
environment = {};
extraOptions = [
"-l=traefik.enable=false"
];
};
}