Created
October 26, 2021 03:38
-
-
Save maietta/0b05efa38901afdbaedc363b78e3852a to your computer and use it in GitHub Desktop.
Caprover Reveal IP to containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pre-deploy function: | |
var preDeployFunction = function (captainAppObj, dockerUpdateObject) { | |
var ports = dockerUpdateObject.EndpointSpec.Ports || []; | |
ports.forEach(function (port) { | |
port.PublishMode = 'host'; | |
}); | |
return Promise.resolve(dockerUpdateObject); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment