def METHOD_NAME(composeFile,containerLocalHostAddress,vehicleId,lastNetworkOctet,lastEndpointOctet,gossipBind,amasePort,configurationFile,tadPort1,tadPort2,tadPort3):
	# backup old run directory and create new one.
	runDir = 'Vehicle_{}'.format(vehicleId)
	if os.path.isdir(runDir):
		shutil.rmtree(runDir)
	os.mkdir(runDir)
	# fix container's host address and add gossip addresses
	fin = open(configurationFile, 'r')
	stringFileIn = fin.read()
	# fix container's host address in the config file
	stringFileIn = stringFileIn.replace(containerLocalHostAddressOrg,containerLocalHostAddress)
	# change zyre config to use gossip
	zyreEntryOrg = '<Bridge Type="LmcpObjectNetworkZeroMqZyreBridge" NetworkDevice="en0">'
	zyreEntryNew = '<Bridge Type="LmcpObjectNetworkZeroMqZyreBridge" ZyreEndpoint="tcp://172.28.6.{0}:39801" GossipEndpoint="tcp://172.28.6.{1}:39810" GossipBind="{2}">'.format(lastNetworkOctet,lastEndpointOctet,gossipBind)
	stringFileIn = stringFileIn.replace(zyreEntryOrg,zyreEntryNew)
	#save the changes to a new file
	cfgFileNew = '{0}_new.xml'.format(configurationFile)
	fout = open('{0}/{1}'.format(runDir,cfgFileNew), 'w')
	fout.write(stringFileIn)
	fout.close()
	# build new docker service (new container)
	composeFile.write(' V{0}:\n'.format(vehicleId))
	composeFile.write('  image: "uxas/uxas-deploy:x86_64"\n')
	composeFile.write('  ports:\n')
	composeFile.write('   - "{1}:{0}::{1}"\n'.format(containerLocalHostAddress,amasePort))
	if tadPort1 and tadPort2:
		composeFile.write('   - "{1}:{1}"\n'.format(containerLocalHostAddress,tadPort1))
		composeFile.write('   - "{1}:{1}"\n'.format(containerLocalHostAddress,tadPort2))
	if tadPort3:
		composeFile.write('   - "{1}:{0}::{1}"\n'.format(containerLocalHostAddress,tadPort3))
	composeFile.write('  volumes:\n')
	composeFile.write('   - type: "bind"\n')
	composeFile.write('     source: "./"\n')
	composeFile.write('     target: "/working"\n')
	composeFile.write('  networks:\n')
	composeFile.write('   uxas_net_coop:\n')
	composeFile.write('    ipv4_address: "172.28.6.{0}"\n'.format(lastNetworkOctet))
	composeFile.write('  working_dir: /working/{0}\n'.format(runDir))
	composeFile.write('  entrypoint: ["/uxas","-cfgPath", "{0}"]\n'.format(cfgFileNew))
	composeFile.write('\n')