nixos-server/services/readme.md

27 lines
461 B
Markdown

# Services
Contains files defining services.
Services are of the form:
```nix
{ pkgs, lib, ... }: {
name = "name";
config = { ... };
ports = {
tcp = [ 80 ];
udp = [ 111 ];
http = 80;
forward = [ { container = 22; host = 22; proto = "tcp"; } ];
};
hosts = [ "myservice.domain.mjau" ];
volumes = [
{
name = "myservice-storage";
mountPoint = "/var/lib/whatever";
readOnly = false;
};
];
hostConfig = { ... }
}
```