diff --git a/docker/compose/ng.sls b/docker/compose/ng.sls index f82f381e..d1a873fd 100644 --- a/docker/compose/ng.sls +++ b/docker/compose/ng.sls @@ -36,6 +36,9 @@ docker-compose-ng-{{ id }}-running: - tty: {{ container.tty|default(False) }} {%- if 'command' in container %} - command: {{ container.command }} + {%- endif %} + {%- if 'network_mode' in container %} + - network_mode: {{ container.network_mode }} {%- endif %} {%- if 'working_dir' in container %} - working_dir: {{ container.working_dir }} diff --git a/docs/README.rst b/docs/README.rst index d81fe5a0..ba938495 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -200,6 +200,7 @@ To use this formula, you might target a host with the following pillar: # image: 'docker.io/nginx:latest' ##Fedora image: 'nginx:latest' container_name: 'nginx-latest' + network_mode: 'bridge' links: - 'registry-service:registry' ports: