version: '3'

services:

{{#services}}
  {{name}}:
    container_name: {{container_name}}
    image: {{image}}
  {{#ports.0}}
    ports:
    {{#ports}}
      - "{{.}}"
    {{/ports}}
  {{/ports.0}}
  {{#depends_on}}
    depends_on:
      - {{.}}
  {{/depends_on}}
  {{#restart}}
    restart: {{.}}
  {{/restart}}
  {{#command}}
    command: {{.}}
  {{/command}}
  {{#labels.0}}
    labels:
    {{#labels}}
      - "{{.}}"
    {{/labels}}
  {{/labels.0}}
  {{#volumes.0}}
    volumes:
    {{#volumes}}
      - "{{.}}"
    {{/volumes}}
  {{/volumes.0}}
  {{#environment.0}}
    environment:
    {{#environment}}
      - {{.}}
    {{/environment}}
  {{/environment.0}}
  {{#networks.0}}
    networks:
    {{#networks}}
      - {{.}}
    {{/networks}}
  {{/networks.0}}
{{/services}}

networks:
  site-network:
  global-network:
    external:
      name: ee-global-network

version: '3'

services:

{{#services}}
  {{name}}:
    container_name: {{container_name}}
    image: {{image}}
  {{#ports.0}}
    ports:
    {{#ports}}
      - "{{.}}"
    {{/ports}}
  {{/ports.0}}
  {{#depends_on}}
    depends_on:
      - {{.}}
  {{/depends_on}}
  {{#restart}}
    restart: {{.}}
  {{/restart}}
  {{#command}}
    command: {{.}}
  {{/command}}
  {{#labels.0}}
    labels:
    {{#labels}}
      - "{{.}}"
    {{/labels}}
  {{/labels.0}}
  {{#volumes.0}}
    volumes:
    {{#volumes}}
      - "{{.}}"
    {{/volumes}}
  {{/volumes.0}}
  {{#environment.0}}
    environment:
    {{#environment}}
      - {{.}}
    {{/environment}}
  {{/environment.0}}
  {{#networks.0}}
    networks:
    {{#networks}}
      - {{.}}
    {{/networks}}
  {{/networks.0}}
{{/services}}

networks:
  global-network:
    external:
      name: ee-global-network

Remove site-network from global docker-compose
Remove site-network from global docker-compose

Signed-off-by: Kirtan Gajjar <dda7ffca0822762c3fa90dba716be1cac57d994e@gmail.com>
