docker scale 2 back containers

This commit is contained in:
Joan Sanchez 2019-02-07 08:03:23 +01:00
parent ee7fa03d62
commit b890ade406
2 changed files with 2 additions and 3 deletions

4
Jenkinsfile vendored
View File

@ -101,7 +101,7 @@ pipeline {
steps {
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
sh 'docker-compose pull'
sh 'docker-compose up -d --scale back=3'
sh 'docker-compose up -d --scale back=2'
}
}
}
@ -112,7 +112,7 @@ pipeline {
steps {
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
sh 'docker-compose pull'
sh 'docker-compose up -d --scale back=3'
sh 'docker-compose up -d --scale back=2'
}
}
}

View File

@ -2,7 +2,6 @@
upstream back {
server back_1:3000;
server back_2:3000;
server back_3:3000;
}
server {
listen 80 default_server;