katzen-cafe/modules/containers/wordpress-schule.nix

39 lines
774 B
Nix
Raw Normal View History

2024-02-21 09:25:07 +01:00
{...}: {
containers."schule-wp" = {
autoStart = true;
privateNetwork = true;
hostAddress = "10.0.4.1";
localAddress = "10.0.4.2";
bindMounts = {
"/var/wp" = {
hostPath = "/schule-wp";
isReadOnly = false;
};
};
config = {
config,
pkgs,
...
}: {
services.wordpress = {
sites."schule" = {
virtualHost = {
hostName = "wp.schule.katzen.cafe";
adminAddr = "schule@schrottkatze.de";
listen = [
{
ip = "10.0.4.2";
port = 80;
ssl = false;
}
];
};
};
};
system.stateVersion = "23.11";
};
};
deployment.keys = {
};
}