17 changed files with 431 additions and 430 deletions
@ -1,5 +0,0 @@ |
|||
CACHE_TYPE=redis |
|||
REDIS_CONNECTION_TYPE=cluster |
|||
REDIS_NODES=redis-node-0:6379,redis-node-1:6379,redis-node-2:6379,redis-node-3:6379,redis-node-4:6379,redis-node-5:6379 |
|||
REDIS_USE_DEFAULT_POOL_CONFIG=false |
|||
REDIS_PASSWORD=thingsboard |
|||
@ -1,2 +0,0 @@ |
|||
CACHE_TYPE=redis |
|||
REDIS_HOST=redis |
|||
@ -0,0 +1,5 @@ |
|||
CACHE_TYPE=redis |
|||
REDIS_CONNECTION_TYPE=cluster |
|||
REDIS_NODES=valkey-node-0:6379,valkey-node-1:6379,valkey-node-2:6379,valkey-node-3:6379,valkey-node-4:6379,valkey-node-5:6379 |
|||
REDIS_USE_DEFAULT_POOL_CONFIG=false |
|||
REDIS_PASSWORD=thingsboard |
|||
@ -1,7 +1,7 @@ |
|||
CACHE_TYPE=redis |
|||
REDIS_CONNECTION_TYPE=sentinel |
|||
REDIS_MASTER=mymaster |
|||
REDIS_SENTINELS=redis-sentinel:26379 |
|||
REDIS_MASTER=myprimary |
|||
REDIS_SENTINELS=valkey-sentinel:26379 |
|||
REDIS_SENTINEL_PASSWORD=sentinel |
|||
REDIS_USE_DEFAULT_POOL_CONFIG=false |
|||
REDIS_PASSWORD=thingsboard |
|||
@ -0,0 +1,2 @@ |
|||
CACHE_TYPE=redis |
|||
REDIS_HOST=valkey |
|||
@ -1,58 +0,0 @@ |
|||
# |
|||
# Copyright © 2016-2025 The Thingsboard Authors |
|||
# |
|||
# Licensed under the Apache License, Version 2.0 (the "License"); |
|||
# you may not use this file except in compliance with the License. |
|||
# You may obtain a copy of the License at |
|||
# |
|||
# http://www.apache.org/licenses/LICENSE-2.0 |
|||
# |
|||
# Unless required by applicable law or agreed to in writing, software |
|||
# distributed under the License is distributed on an "AS IS" BASIS, |
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
# See the License for the specific language governing permissions and |
|||
# limitations under the License. |
|||
# |
|||
|
|||
version: '3.0' |
|||
|
|||
services: |
|||
# Redis cluster |
|||
redis-node-0: |
|||
volumes: |
|||
- redis-cluster-data-0:/bitnami/redis/data |
|||
redis-node-1: |
|||
volumes: |
|||
- redis-cluster-data-1:/bitnami/redis/data |
|||
redis-node-2: |
|||
volumes: |
|||
- redis-cluster-data-2:/bitnami/redis/data |
|||
redis-node-3: |
|||
volumes: |
|||
- redis-cluster-data-3:/bitnami/redis/data |
|||
redis-node-4: |
|||
volumes: |
|||
- redis-cluster-data-4:/bitnami/redis/data |
|||
redis-node-5: |
|||
volumes: |
|||
- redis-cluster-data-5:/bitnami/redis/data |
|||
|
|||
volumes: |
|||
redis-cluster-data-0: |
|||
external: |
|||
name: ${REDIS_CLUSTER_DATA_VOLUME_0} |
|||
redis-cluster-data-1: |
|||
external: |
|||
name: ${REDIS_CLUSTER_DATA_VOLUME_1} |
|||
redis-cluster-data-2: |
|||
external: |
|||
name: ${REDIS_CLUSTER_DATA_VOLUME_2} |
|||
redis-cluster-data-3: |
|||
external: |
|||
name: ${REDIS_CLUSTER_DATA_VOLUME_3} |
|||
redis-cluster-data-4: |
|||
external: |
|||
name: ${REDIS_CLUSTER_DATA_VOLUME_4} |
|||
redis-cluster-data-5: |
|||
external: |
|||
name: ${REDIS_CLUSTER_DATA_VOLUME_5} |
|||
@ -1,151 +0,0 @@ |
|||
# |
|||
# Copyright © 2016-2025 The Thingsboard Authors |
|||
# |
|||
# Licensed under the Apache License, Version 2.0 (the "License"); |
|||
# you may not use this file except in compliance with the License. |
|||
# You may obtain a copy of the License at |
|||
# |
|||
# http://www.apache.org/licenses/LICENSE-2.0 |
|||
# |
|||
# Unless required by applicable law or agreed to in writing, software |
|||
# distributed under the License is distributed on an "AS IS" BASIS, |
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
# See the License for the specific language governing permissions and |
|||
# limitations under the License. |
|||
# |
|||
|
|||
version: '3.0' |
|||
|
|||
services: |
|||
# Redis cluster |
|||
# The latest version of Redis compatible with ThingsBoard is 7.2 |
|||
redis-node-0: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/redis-cluster-data-0:/bitnami/redis/data |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' |
|||
|
|||
redis-node-1: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/redis-cluster-data-1:/bitnami/redis/data |
|||
depends_on: |
|||
- redis-node-0 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' |
|||
|
|||
redis-node-2: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/redis-cluster-data-2:/bitnami/redis/data |
|||
depends_on: |
|||
- redis-node-1 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' |
|||
|
|||
redis-node-3: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/redis-cluster-data-3:/bitnami/redis/data |
|||
depends_on: |
|||
- redis-node-2 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' |
|||
|
|||
redis-node-4: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/redis-cluster-data-4:/bitnami/redis/data |
|||
depends_on: |
|||
- redis-node-3 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' |
|||
|
|||
redis-node-5: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/redis-cluster-data-5:/bitnami/redis/data |
|||
depends_on: |
|||
- redis-node-0 |
|||
- redis-node-1 |
|||
- redis-node-2 |
|||
- redis-node-3 |
|||
- redis-node-4 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' |
|||
- 'VALKEY_CLUSTER_REPLICAS=1' |
|||
- 'VALKEY_CLUSTER_CREATOR=yes' |
|||
|
|||
# ThingsBoard setup to use redis-cluster |
|||
tb-core1: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-core2: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-rule-engine1: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-rule-engine2: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-mqtt-transport1: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-mqtt-transport2: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-http-transport1: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-http-transport2: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-coap-transport: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-lwm2m-transport: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-snmp-transport: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-vc-executor1: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
tb-vc-executor2: |
|||
env_file: |
|||
- cache-redis-cluster.env |
|||
depends_on: |
|||
- redis-node-5 |
|||
@ -1,120 +0,0 @@ |
|||
# |
|||
# Copyright © 2016-2025 The Thingsboard Authors |
|||
# |
|||
# Licensed under the Apache License, Version 2.0 (the "License"); |
|||
# you may not use this file except in compliance with the License. |
|||
# You may obtain a copy of the License at |
|||
# |
|||
# http://www.apache.org/licenses/LICENSE-2.0 |
|||
# |
|||
# Unless required by applicable law or agreed to in writing, software |
|||
# distributed under the License is distributed on an "AS IS" BASIS, |
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
# See the License for the specific language governing permissions and |
|||
# limitations under the License. |
|||
# |
|||
|
|||
version: '3.0' |
|||
|
|||
services: |
|||
# Redis sentinel |
|||
# The latest version of Redis compatible with ThingsBoard is 7.2 |
|||
redis-master: |
|||
image: 'bitnami/redis:7.2' |
|||
volumes: |
|||
- ./tb-node/redis-sentinel-data-master:/bitnami/redis/data |
|||
environment: |
|||
- 'REDIS_REPLICATION_MODE=master' |
|||
- 'REDIS_PASSWORD=thingsboard' |
|||
|
|||
redis-slave: |
|||
image: 'bitnami/redis:7.2' |
|||
volumes: |
|||
- ./tb-node/redis-sentinel-data-slave:/bitnami/redis/data |
|||
environment: |
|||
- 'REDIS_REPLICATION_MODE=slave' |
|||
- 'REDIS_MASTER_HOST=redis-master' |
|||
- 'REDIS_MASTER_PASSWORD=thingsboard' |
|||
- 'REDIS_PASSWORD=thingsboard' |
|||
depends_on: |
|||
- redis-master |
|||
|
|||
redis-sentinel: |
|||
image: 'bitnami/redis-sentinel:7.2' |
|||
volumes: |
|||
- ./tb-node/redis-sentinel-data-sentinel:/bitnami/redis/data |
|||
environment: |
|||
- 'REDIS_MASTER_HOST=redis-master' |
|||
- 'REDIS_MASTER_SET=mymaster' |
|||
- 'REDIS_SENTINEL_PASSWORD=sentinel' |
|||
- 'REDIS_MASTER_PASSWORD=thingsboard' |
|||
depends_on: |
|||
- redis-master |
|||
- redis-slave |
|||
|
|||
# ThingsBoard setup to use redis-sentinel |
|||
tb-core1: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-core2: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-rule-engine1: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-rule-engine2: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-mqtt-transport1: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-mqtt-transport2: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-http-transport1: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-http-transport2: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-coap-transport: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-lwm2m-transport: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-snmp-transport: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-vc-executor1: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
tb-vc-executor2: |
|||
env_file: |
|||
- cache-redis-sentinel.env |
|||
depends_on: |
|||
- redis-sentinel |
|||
@ -0,0 +1,58 @@ |
|||
# |
|||
# Copyright © 2016-2025 The Thingsboard Authors |
|||
# |
|||
# Licensed under the Apache License, Version 2.0 (the "License"); |
|||
# you may not use this file except in compliance with the License. |
|||
# You may obtain a copy of the License at |
|||
# |
|||
# http://www.apache.org/licenses/LICENSE-2.0 |
|||
# |
|||
# Unless required by applicable law or agreed to in writing, software |
|||
# distributed under the License is distributed on an "AS IS" BASIS, |
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
# See the License for the specific language governing permissions and |
|||
# limitations under the License. |
|||
# |
|||
|
|||
version: '3.0' |
|||
|
|||
services: |
|||
# Valkey cluster |
|||
valkey-node-0: |
|||
volumes: |
|||
- valkey-cluster-data-0:/bitnami/valkey/data |
|||
valkey-node-1: |
|||
volumes: |
|||
- valkey-cluster-data-1:/bitnami/valkey/data |
|||
valkey-node-2: |
|||
volumes: |
|||
- valkey-cluster-data-2:/bitnami/valkey/data |
|||
valkey-node-3: |
|||
volumes: |
|||
- valkey-cluster-data-3:/bitnami/valkey/data |
|||
valkey-node-4: |
|||
volumes: |
|||
- valkey-cluster-data-4:/bitnami/valkey/data |
|||
valkey-node-5: |
|||
volumes: |
|||
- valkey-cluster-data-5:/bitnami/valkey/data |
|||
|
|||
volumes: |
|||
valkey-cluster-data-0: |
|||
external: |
|||
name: ${VALKEY_CLUSTER_DATA_VOLUME_0} |
|||
valkey-cluster-data-1: |
|||
external: |
|||
name: ${VALKEY_CLUSTER_DATA_VOLUME_1} |
|||
valkey-cluster-data-2: |
|||
external: |
|||
name: ${VALKEY_CLUSTER_DATA_VOLUME_2} |
|||
valkey-cluster-data-3: |
|||
external: |
|||
name: ${VALKEY_CLUSTER_DATA_VOLUME_3} |
|||
valkey-cluster-data-4: |
|||
external: |
|||
name: ${VALKEY_CLUSTER_DATA_VOLUME_4} |
|||
valkey-cluster-data-5: |
|||
external: |
|||
name: ${VALKEY_CLUSTER_DATA_VOLUME_5} |
|||
@ -0,0 +1,152 @@ |
|||
# |
|||
# Copyright © 2016-2025 The Thingsboard Authors |
|||
# |
|||
# Licensed under the Apache License, Version 2.0 (the "License"); |
|||
# you may not use this file except in compliance with the License. |
|||
# You may obtain a copy of the License at |
|||
# |
|||
# http://www.apache.org/licenses/LICENSE-2.0 |
|||
# |
|||
# Unless required by applicable law or agreed to in writing, software |
|||
# distributed under the License is distributed on an "AS IS" BASIS, |
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
# See the License for the specific language governing permissions and |
|||
# limitations under the License. |
|||
# |
|||
|
|||
version: '3.0' |
|||
|
|||
services: |
|||
# Valkey cluster |
|||
# The latest version of Valkey compatible with ThingsBoard is 8.0 |
|||
valkey-node-0: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/valkey-cluster-data-0:/bitnami/valkey/data |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=valkey-node-0 valkey-node-1 valkey-node-2 valkey-node-3 valkey-node-4 valkey-node-5' |
|||
|
|||
valkey-node-1: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/valkey-cluster-data-1:/bitnami/valkey/data |
|||
depends_on: |
|||
- valkey-node-0 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=valkey-node-0 valkey-node-1 valkey-node-2 valkey-node-3 valkey-node-4 valkey-node-5' |
|||
|
|||
valkey-node-2: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/valkey-cluster-data-2:/bitnami/valkey/data |
|||
depends_on: |
|||
- valkey-node-1 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=valkey-node-0 valkey-node-1 valkey-node-2 valkey-node-3 valkey-node-4 valkey-node-5' |
|||
|
|||
valkey-node-3: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/valkey-cluster-data-3:/bitnami/valkey/data |
|||
depends_on: |
|||
- valkey-node-2 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=valkey-node-0 valkey-node-1 valkey-node-2 valkey-node-3 valkey-node-4 valkey-node-5' |
|||
|
|||
valkey-node-4: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/valkey-cluster-data-4:/bitnami/valkey/data |
|||
depends_on: |
|||
- valkey-node-3 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'VALKEY_NODES=valkey-node-0 valkey-node-1 valkey-node-2 valkey-node-3 valkey-node-4 valkey-node-5' |
|||
|
|||
valkey-node-5: |
|||
image: bitnami/valkey-cluster:8.0 |
|||
volumes: |
|||
- ./tb-node/valkey-cluster-data-5:/bitnami/valkey/data |
|||
depends_on: |
|||
- valkey-node-0 |
|||
- valkey-node-1 |
|||
- valkey-node-2 |
|||
- valkey-node-3 |
|||
- valkey-node-4 |
|||
environment: |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
- 'REDISCLI_AUTH=thingsboard' |
|||
- 'VALKEY_NODES=valkey-node-0 valkey-node-1 valkey-node-2 valkey-node-3 valkey-node-4 valkey-node-5' |
|||
- 'VALKEY_CLUSTER_REPLICAS=1' |
|||
- 'VALKEY_CLUSTER_CREATOR=yes' |
|||
|
|||
# ThingsBoard setup to use valkey-cluster |
|||
tb-core1: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-core2: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-rule-engine1: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-rule-engine2: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-mqtt-transport1: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-mqtt-transport2: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-http-transport1: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-http-transport2: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-coap-transport: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-lwm2m-transport: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-snmp-transport: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-vc-executor1: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
tb-vc-executor2: |
|||
env_file: |
|||
- cache-valkey-cluster.env |
|||
depends_on: |
|||
- valkey-node-5 |
|||
@ -0,0 +1,120 @@ |
|||
# |
|||
# Copyright © 2016-2025 The Thingsboard Authors |
|||
# |
|||
# Licensed under the Apache License, Version 2.0 (the "License"); |
|||
# you may not use this file except in compliance with the License. |
|||
# You may obtain a copy of the License at |
|||
# |
|||
# http://www.apache.org/licenses/LICENSE-2.0 |
|||
# |
|||
# Unless required by applicable law or agreed to in writing, software |
|||
# distributed under the License is distributed on an "AS IS" BASIS, |
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
# See the License for the specific language governing permissions and |
|||
# limitations under the License. |
|||
# |
|||
|
|||
version: '3.0' |
|||
|
|||
services: |
|||
# Valkey sentinel |
|||
# The latest version of Valkey compatible with ThingsBoard is 8.0 |
|||
valkey-primary: |
|||
image: 'bitnami/valkey:8.0' |
|||
volumes: |
|||
- ./tb-node/valkey-sentinel-data-primary:/bitnami/valkey/data |
|||
environment: |
|||
- 'VALKEY_REPLICATION_MODE=primary' |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
|
|||
valkey-replica: |
|||
image: 'bitnami/valkey:8.0' |
|||
volumes: |
|||
- ./tb-node/valkey-sentinel-data-replica:/bitnami/valkey/data |
|||
environment: |
|||
- 'VALKEY_REPLICATION_MODE=replica' |
|||
- 'VALKEY_PRIMARY_HOST=valkey-primary' |
|||
- 'VALKEY_PRIMARY_PASSWORD=thingsboard' |
|||
- 'VALKEY_PASSWORD=thingsboard' |
|||
depends_on: |
|||
- valkey-primary |
|||
|
|||
valkey-sentinel: |
|||
image: 'bitnami/valkey-sentinel:8.0' |
|||
volumes: |
|||
- ./tb-node/valkey-sentinel-data-sentinel:/bitnami/valkey/data |
|||
environment: |
|||
- 'VALKEY_PRIMARY_HOST=valkey-primary' |
|||
- 'VALKEY_MASTER_SET=myprimary' |
|||
- 'VALKEY_SENTINEL_PASSWORD=sentinel' |
|||
- 'VALKEY_PRIMARY_PASSWORD=thingsboard' |
|||
depends_on: |
|||
- valkey-primary |
|||
- valkey-replica |
|||
|
|||
# ThingsBoard setup to use valkey-sentinel |
|||
tb-core1: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-core2: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-rule-engine1: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-rule-engine2: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-mqtt-transport1: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-mqtt-transport2: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-http-transport1: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-http-transport2: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-coap-transport: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-lwm2m-transport: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-snmp-transport: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-vc-executor1: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
tb-vc-executor2: |
|||
env_file: |
|||
- cache-valkey-sentinel.env |
|||
depends_on: |
|||
- valkey-sentinel |
|||
Loading…
Reference in new issue