22 lines
498 B
Nix
22 lines
498 B
Nix
|
{ pkgs, ... }:
|
||
|
{
|
||
|
config.docker-compose.services = {
|
||
|
|
||
|
webserver = {
|
||
|
service.useHostStore = true;
|
||
|
# service.depends_on = [ "backend" ];
|
||
|
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";
|
||
|
};
|
||
|
|
||
|
# backend = { ... }
|
||
|
};
|
||
|
}
|
||
|
|