         # remove the hostname if set in the service, the hostname is set from
         # the network container
         delete service.hostname
-        service.net = "container:bb-net-#{serviceName}"
-      else service.net = "container:bb-net-#{service.labels['bigboat.service.name']}"
+        delete service.net
+        service.network_mode = "service:bb-net-#{serviceName}"
+      else service.network_mode = "service:bb-net-#{service.labels['bigboat.service.name']}"
 
     addVolumeMapping = (serviceName, service) ->
       bucketPath = path.join config.dataDir, config.domain, options.storageBucket if options.storageBucket

        else v
      delete service.volumes unless service.volumes

    addDockerMapping = (serviceName, service) ->
      if service.labels['bigboat.container.map_docker'] is 'true'
        service.volumes = [] unless service.volumes

          environment: eth0_pipework_cmd: networkValue
          hostname: "#{serviceName}.#{subDomain}"
          dns_search: subDomain
          network_mode: 'none'
          labels: labels
          stop_signal: 'SIGKILL'
        if service.container_name
