Merge pull request #70 from srghma/container_name
feat: docker-compose fields -> networks -> add
This commit is contained in:
commit
cc9e70a2cc
1 changed files with 7 additions and 0 deletions
|
@ -174,6 +174,11 @@ in
|
||||||
default = null;
|
default = null;
|
||||||
description = dockerComposeRef "network_mode";
|
description = dockerComposeRef "network_mode";
|
||||||
};
|
};
|
||||||
|
service.networks = mkOption {
|
||||||
|
type = nullOr (listOf types.str);
|
||||||
|
default = null;
|
||||||
|
description = dockerComposeRef "networks";
|
||||||
|
};
|
||||||
service.stop_signal = mkOption {
|
service.stop_signal = mkOption {
|
||||||
type = nullOr str;
|
type = nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
|
@ -245,6 +250,8 @@ in
|
||||||
inherit (config.service) privileged;
|
inherit (config.service) privileged;
|
||||||
} // lib.optionalAttrs (config.service.network_mode != null) {
|
} // lib.optionalAttrs (config.service.network_mode != null) {
|
||||||
inherit (config.service) network_mode;
|
inherit (config.service) network_mode;
|
||||||
|
} // lib.optionalAttrs (config.service.networks != null) {
|
||||||
|
inherit (config.service) networks;
|
||||||
} // lib.optionalAttrs (config.service.restart != null) {
|
} // lib.optionalAttrs (config.service.restart != null) {
|
||||||
inherit (config.service) restart;
|
inherit (config.service) restart;
|
||||||
} // lib.optionalAttrs (config.service.stop_signal != null) {
|
} // lib.optionalAttrs (config.service.stop_signal != null) {
|
||||||
|
|
Loading…
Reference in a new issue