Skip to content

Commit

Permalink
fix: connecting to external networks
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasHeine committed Sep 20, 2023
1 parent 3953a19 commit 55ba9b2
Show file tree
Hide file tree
Showing 2 changed files with 705 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async function up(docker, projectName, recipe, output, options) {
};

if (service.networks !== undefined) {
servicesTools.buildNetworks(projectName, serviceName, service.networks, networksToAttach, opts);
servicesTools.buildNetworks(projectName, serviceName, service.networks, networksToAttach, opts, recipe.networks);
} else {
opts.HostConfig.NetworkMode = projectName + '_default';
opts.NetworkingConfig.EndpointsConfig[projectName + '_default'] = {
Expand Down
Loading

0 comments on commit 55ba9b2

Please sign in to comment.