Merge pull request #68 from srghma/container_name

feat: docker-compose fields -> container_name -> add
This commit is contained in:
Robert Hensing 2019-09-18 11:52:13 +02:00 committed by GitHub
commit 13a702968d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 != []) {