petersweb-infra/nixos/arion/arion-compose.nix

20 lines
512 B
Nix
Raw Normal View History

2024-12-07 00:25:28 -09:00
{ pkgs, ... }:
2024-12-06 23:05:42 -09:00
{
2024-12-07 00:25:28 -09:00
project.name = "webapp";
services = {
2024-12-06 23:05:42 -09:00
2024-12-07 00:25:28 -09:00
webserver = {
image.enableRecommendedContents = true;
service.useHostStore = true;
service.command = [ "sh" "-c" ''
cd "$$WEB_ROOT"
${pkgs.python3}/bin/python -m http.server
'' ];
service.ports = [
"8009:8000" # host:container
];
service.environment.WEB_ROOT = "${pkgs.nix.doc}/share/doc/nix/manual";
service.stop_signal = "SIGINT";
2024-12-06 23:05:42 -09:00
};
};
2024-12-07 00:25:28 -09:00
}