25 lines
313 B
Markdown
25 lines
313 B
Markdown
# Services
|
|
|
|
TODO: volumes
|
|
|
|
Contains files defining services.
|
|
|
|
Services are of the form:
|
|
```nix
|
|
{ pkgs, ... }: {
|
|
name = "name";
|
|
ip = {
|
|
host = "ip";
|
|
local = "ip";
|
|
};
|
|
config = { ... };
|
|
ports = {
|
|
tcp = [ 80 ];
|
|
udp = [ 111 ];
|
|
http = 80;
|
|
};
|
|
hosts = [ "myservice.domain.mjau" ];
|
|
}
|
|
```
|
|
|