@@ -96,6 +96,10 @@ def schema_normal(cls):
9696 If enabled, read the environment variables in the env-files defined in the project (``env_files``).
9797 Default: True
9898
99+ [use_host_network]: bool
100+ If enabled, the container uses network mode `host`. Overrides network and port settings
101+ Default: False
102+
99103 **Example Document:**
100104
101105 .. code-block:: yaml
@@ -121,7 +125,8 @@ def schema_normal(cls):
121125 },
122126 Optional ('environment' ): {str : str },
123127 Optional ('config_from_roles' ): [str ],
124- Optional ('read_env_file' ): bool
128+ Optional ('read_env_file' ): bool ,
129+ Optional ('use_host_network' ): bool ,
125130 })
126131
127132 @classmethod
@@ -160,6 +165,10 @@ def schema_in_service(cls):
160165 If enabled, read the environment variables in the env-files defined in the project (``env_files``).
161166 Default: True
162167
168+ [use_host_network]: bool
169+ If enabled, the container uses network mode `host`. Overrides network and port settings
170+ Default: False
171+
163172 **Example Document:**
164173
165174 .. code-block:: yaml
@@ -176,6 +185,7 @@ def schema_in_service(cls):
176185 'command' : str ,
177186 Optional ('environment' ): {str : str },
178187 Optional ('read_env_file' ): bool ,
188+ Optional ('use_host_network' ): bool ,
179189 })
180190
181191 @classmethod
0 commit comments