Test with pod and container
This commit is contained in:
parent
7df20acc14
commit
4a39b2cbfd
2 changed files with 58 additions and 5 deletions
|
|
@ -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; [ ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue