mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-23 00:32:12 +03:00
21 lines
513 B
Nix
21 lines
513 B
Nix
{ pkgs, ... }:
|
|
{
|
|
project.name = "webapp";
|
|
services = {
|
|
|
|
webserver = {
|
|
image.enableRecommendedContents = true;
|
|
service.useHostStore = true;
|
|
service.command = [ "sh" "-c" ''
|
|
cd "$$WEB_ROOT"
|
|
${pkgs.python3}/bin/python -m http.server
|
|
'' ];
|
|
service.ports = [
|
|
"8000:8000" # host:container
|
|
];
|
|
service.environment.WEB_ROOT = "${pkgs.nix.doc}/share/doc/nix/manual";
|
|
service.stop_signal = "SIGINT";
|
|
};
|
|
};
|
|
}
|