27 lines
383 B
Markdown
27 lines
383 B
Markdown
# Services
|
|
|
|
TODO: volumes
|
|
|
|
Contains files defining services.
|
|
|
|
Services are of the form:
|
|
```nix
|
|
{ pkgs, ... }: {
|
|
name = "name";
|
|
config = { ... };
|
|
ports = {
|
|
tcp = [ 80 ];
|
|
udp = [ 111 ];
|
|
http = 80;
|
|
};
|
|
hosts = [ "myservice.domain.mjau" ];
|
|
volumes = [
|
|
{
|
|
name = "myservice-storage";
|
|
mountPoint = "/var/lib/whatever";
|
|
readOnly = false;
|
|
};
|
|
];
|
|
}
|
|
```
|