23 lines
575 B
Nix
23 lines
575 B
Nix
{
|
|
virtualisation = {
|
|
containers.enable = true;
|
|
podman.enable = true;
|
|
oci-containers.containers = {
|
|
static = {
|
|
image = "docker.io/library/nginx:alpine";
|
|
volumes = [
|
|
"/srv/docker/nginx/static:/usr/share/nginx/html:ro"
|
|
"/srv/docker/nginx/config/static/default.conf:/etc/nginx/config.d/default.conf:ro"
|
|
];
|
|
labels = {
|
|
swag = "enable";
|
|
swag_url = "www.icanttype.org";
|
|
};
|
|
extraOptions = [
|
|
"--pull=newer"
|
|
"--network=www"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|