Merge pull request #44 from hercules-ci/compose-service-user

docker-compose: support 'user' entry
This commit is contained in:
Robert Hensing 2019-05-07 09:18:14 +02:00 committed by GitHub
commit c94542bf78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,6 +140,11 @@ in
default = null; default = null;
description = dockerComposeRef "restart"; description = dockerComposeRef "restart";
}; };
service.user = mkOption {
type = nullOr str;
default = null;
description = dockerComposeKitchenSink;
};
service.ports = mkOption { service.ports = mkOption {
type = listOf types.unspecified; type = listOf types.unspecified;
default = []; default = [];
@ -237,5 +242,7 @@ in
inherit (config.service) tty; inherit (config.service) tty;
} // lib.optionalAttrs (config.service.working_dir != null) { } // lib.optionalAttrs (config.service.working_dir != null) {
inherit (config.service) working_dir; inherit (config.service) working_dir;
} // lib.optionalAttrs (config.service.user != null) {
inherit (config.service) user;
}; };
} }