Update docker-compose files version from 2.2 to 3. Replace scale with deploy.replicas
This commit is contained in:
parent
15c34bfc11
commit
af69cf576b
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
tb-js-executor:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
cassandra:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
tb-js-executor:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
kafka:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
volumes:
|
||||
prometheus_data: {}
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
tb-js-executor:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
tb-js-executor:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
# Redis cluster
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
# Redis cluster
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
redis:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
# Redis standalone
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
tb-js-executor:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
version: '2.2'
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
tb-core1:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user