feat: docker-compose fields -> container_name -> add

This commit is contained in:
Serhii Khoma 2019-09-16 20:35:39 +03:00
parent 466d8e3af3
commit 2d079e4f41

View file

@ -90,6 +90,11 @@ in
default = null;
description = dockerComposeRef "command";
};
service.container_name = mkOption {
type = nullOr types.str;
default = null;
description = dockerComposeRef "container_name";
};
service.depends_on = mkOption {
type = listOf str;
default = [];
@ -214,6 +219,8 @@ in
inherit cap_drop;
} // lib.optionalAttrs (config.service.command != null) {
inherit (config.service) command;
} // lib.optionalAttrs (config.service.container_name != null) {
inherit (config.service) container_name;
} // lib.optionalAttrs (config.service.depends_on != []) {
inherit (config.service) depends_on;
} // lib.optionalAttrs (config.service.devices != []) {