Skip to content

Commit

Permalink
Fix network selection
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Jan 19, 2022
1 parent b189266 commit 7409889
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ module.exports = {
}
},
_createContainer: async (project, options, domain, image) => {

let networks = await this._docker.listNetworks({filters:{label: ["com.docker.compose.network=flowforge"]}})

if (options.registry) {
image = options.registry + "/" + image
}
Expand All @@ -242,7 +245,7 @@ module.exports = {
AttachStdout: false,
AttachStderr: false,
HostConfig: {
NetworkMode: "internal"
NetworkMode: networks[0].Name
}
}
if (options.env) {
Expand Down

0 comments on commit 7409889

Please sign in to comment.