From 0f85d7b03ca429a9e0ce560eafa85458f4b5af83 Mon Sep 17 00:00:00 2001 From: Serhii Khoma Date: Wed, 18 Sep 2019 19:34:26 +0300 Subject: [PATCH] feat: docker-compose fields -> networks -> add --- src/nix/modules/service/docker-compose-service.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nix/modules/service/docker-compose-service.nix b/src/nix/modules/service/docker-compose-service.nix index 5bde3ad..80a795d 100644 --- a/src/nix/modules/service/docker-compose-service.nix +++ b/src/nix/modules/service/docker-compose-service.nix @@ -174,6 +174,11 @@ in default = null; description = dockerComposeRef "network_mode"; }; + service.networks = mkOption { + type = nullOr (listOf types.str); + default = null; + description = dockerComposeRef "networks"; + }; service.stop_signal = mkOption { type = nullOr str; default = null; @@ -245,6 +250,8 @@ in inherit (config.service) privileged; } // lib.optionalAttrs (config.service.network_mode != null) { inherit (config.service) network_mode; + } // lib.optionalAttrs (config.service.networks != null) { + inherit (config.service) networks; } // lib.optionalAttrs (config.service.restart != null) { inherit (config.service) restart; } // lib.optionalAttrs (config.service.stop_signal != null) {