Docker-compose - remove scale and add compatibility mode for docker-compose standalone

This commit is contained in:
Volodymyr Babak 2022-11-30 15:17:13 +02:00
parent 01d9af24b4
commit f959da7f52
2 changed files with 1 additions and 4 deletions

View File

@ -30,9 +30,6 @@ services:
tb-js-executor:
restart: always
image: "${DOCKER_REPO}/${JS_EXECUTOR_DOCKER_NAME}:${TB_VERSION}"
# 'deploy.replicas' configuration is not supported in docker-compose
# in case outdated docker-compose is used please update next line in docker-start-services.sh file to scale tb-js-executors:
# docker-compose $COMPOSE_ARGS --scale tb-js-executor=10
deploy:
replicas: 10
env_file:

View File

@ -40,7 +40,7 @@ case $COMPOSE_VERSION in
docker compose $COMPOSE_ARGS
;;
V1)
docker-compose $COMPOSE_ARGS --scale tb-js-executor=10
docker-compose --compatibility $COMPOSE_ARGS
;;
*)
# unknown option