Test with pod and container

This commit is contained in:
pazpi 2024-08-25 22:05:36 +02:00
parent 7df20acc14
commit 4a39b2cbfd
No known key found for this signature in database
GPG key ID: 0942571C4B9966BE
2 changed files with 58 additions and 5 deletions

View file

@ -16,10 +16,42 @@ in
proxmox.enable = true;
download-pod = {
enable = true;
proxy.enable = true;
enable = false;
proxy.enable = false;
};
services.podmanPods = {
mywebapp = {
name = "mywebapp";
ports = [ "9090:80" "9443:443" ];
containers = {
webserver = {
enable = true;
image = "nginx";
volumes = [ "aaa:/config" "bbb:/data" ];
};
appserver = {
image = "my-custom-app:latest";
};
};
};
database = {
name = "database";
ports = [
"3333:4444"
"5432:5432"
];
containers = {
postgres = {
image = "postgres:13";
};
};
};
};
# Extra packages
# environment.systemPackages = with pkgs; [ ];