Commit 2878ac5b authored by Ryan Kuba's avatar Ryan Kuba

defining the stack name as the project so compose does not find orphans

parent b9efa37c
Pipeline #15107242 passed with stage
in 5 minutes and 36 seconds
......@@ -305,7 +305,7 @@ io.on('connection', function(socket){
var yml = yaml.safeLoad(body);
var compose = yml.compose;
var composefile = nunjucks.renderString(compose, inputs);
var composecommand = ['sh','-c','echo \'' + composefile + '\' | docker-compose -f - up -d'];
var composecommand = ['sh','-c','echo \'' + composefile + '\' | docker-compose -p '+ inputs.stackname+' -f - up -d'];
const composeup = spawn('unbuffer', composecommand);
composeup.stdout.setEncoding('utf8');
composeup.stdout.on('data', (data) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment