         service.volumes.push '/var/run/docker.sock:/var/run/docker.sock'
 
     for serviceName, service of doc.services
+      migrateLinksToDependsOn serviceName, service
       addExtraLabels serviceName, service
       addNetworkContainer serviceName, service
       addVolumeMapping serviceName, service
       addDockerMapping serviceName, service
-      migrateLinksToDependsOn serviceName, service
       migrateLogging serviceName, service
       restrictCompose serviceName, service
 

          network_mode: 'none'
          labels: labels
          stop_signal: 'SIGKILL'
        if service.container_name
          netcontainer['container_name'] = "#{service.container_name}-net"


path      = require 'path'
resolvep  = require 'resolve-path'

composeLib = require './compose/lib.coffee'

module.exports = (config) ->
  vlan = if config.vlan then " @#{config.vlan}" else  ''
  networkValue = "#{config.host_if} -i eth0 @CONTAINER_NAME@ dhclient#{vlan}"

  augmentCompose: (instance, options, doc) ->
    addNetworkContainer = (serviceName, service) ->
