Fixed swarm network mapping and default docker network type to swarm (overlay)

This commit is contained in:
frikky
2022-01-02 00:37:50 +01:00
parent b17e10886e
commit 1b0d517fec
3 changed files with 44 additions and 6 deletions
+5
View File
@@ -2542,6 +2542,11 @@ func deploySwarmService(dockercli *dockerclient.Client, name, image string, depl
},
}
if len(os.Getenv("SHUFFLE_SWARM_OTHER_NETWORK")) > 0 {
serviceSpec.Networks = append(serviceSpec.Networks, swarm.NetworkAttachmentConfig{
Target: "shuffle_shuffle",
})
}
/*
Mounts: []mount.Mount{
mount.Mount{