Merge pull request #19 from srghma/myfixes

docker-config -> add missing fields
This commit is contained in:
Robert Hensing 2019-02-04 08:15:00 +01:00 committed by GitHub
commit 1044cc3e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@
let
inherit (lib) mkOption types;
inherit (types) listOf nullOr attrsOf string either int;
inherit (types) listOf nullOr attrsOf string either int bool;
in
{
options = {
@ -20,6 +20,10 @@ in
type = nullOr string;
default = null;
};
service.hostname = mkOption {
type = nullOr string;
default = null;
};
service.environment = mkOption {
type = attrsOf (either string int);
default = {};
@ -35,10 +39,26 @@ in
type = listOf string;
default = [];
};
service.links = mkOption {
type = listOf string;
default = [];
};
service.external_links = mkOption {
type = listOf string;
default = [];
};
service.extra_hosts = mkOption {
type = listOf string;
default = [];
};
service.working_dir = mkOption {
type = nullOr string;
default = null;
};
service.privileged = mkOption {
type = nullOr bool;
default = null;
};
service.entrypoint = mkOption {
type = nullOr string;
default = null;