Update docker-compose files version from 2.2 to 3. Replace scale with deploy.replicas

This commit is contained in:
Volodymyr Babak 2022-11-30 12:59:45 +02:00
parent 15c34bfc11
commit af69cf576b
18 changed files with 21 additions and 22 deletions

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
tb-js-executor: tb-js-executor:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
cassandra: cassandra:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
tb-js-executor: tb-js-executor:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
postgres: postgres:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
kafka: kafka:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
postgres: postgres:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
postgres: postgres:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
volumes: volumes:
prometheus_data: {} prometheus_data: {}

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
tb-js-executor: tb-js-executor:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
tb-js-executor: tb-js-executor:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
# Redis cluster # Redis cluster

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
# Redis cluster # Redis cluster

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
redis: redis:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
# Redis standalone # Redis standalone

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
tb-js-executor: tb-js-executor:

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
# #
version: '2.2' version: '3'
services: services:
tb-core1: tb-core1:

View File

@ -15,7 +15,7 @@
# #
version: '2.2' version: '3'
services: services:
zookeeper: zookeeper:
@ -30,10 +30,8 @@ services:
tb-js-executor: tb-js-executor:
restart: always restart: always
image: "${DOCKER_REPO}/${JS_EXECUTOR_DOCKER_NAME}:${TB_VERSION}" image: "${DOCKER_REPO}/${JS_EXECUTOR_DOCKER_NAME}:${TB_VERSION}"
# 'scale' configuration is not supported in V2 deploy:
# in case docker compose plugin V2 is used please update next line in docker-start-services.sh file: replicas: 10
# docker compose $COMPOSE_ARGS --scale tb-js-executor=10
scale: 10
env_file: env_file:
- tb-js-executor.env - tb-js-executor.env
tb-core1: tb-core1:

View File

@ -37,10 +37,11 @@ COMPOSE_ARGS="\
case $COMPOSE_VERSION in case $COMPOSE_VERSION in
V2) V2)
docker compose $COMPOSE_ARGS --scale tb-js-executor=10 docker compose $COMPOSE_ARGS
;; ;;
V1) V1)
docker-compose $COMPOSE_ARGS docker-compose $COMPOSE_ARGS
docker-compose scale tb-js-executor=10
;; ;;
*) *)
# unknown option # unknown option