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.
#
version: '2.2'
version: '3'
services:
tb-js-executor:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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