docker-compose.hybrid.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #
  2. # Copyright © 2016-2022 The Thingsboard Authors
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. version: '2.2'
  17. services:
  18. postgres:
  19. restart: always
  20. image: "postgres:12"
  21. ports:
  22. - "5432"
  23. environment:
  24. POSTGRES_DB: thingsboard
  25. POSTGRES_PASSWORD: postgres
  26. volumes:
  27. - ./tb-node/postgres:/var/lib/postgresql/data
  28. cassandra:
  29. restart: always
  30. image: "cassandra:3.11.3"
  31. ports:
  32. - "9042"
  33. volumes:
  34. - ./tb-node/cassandra:/var/lib/cassandra
  35. tb-core1:
  36. env_file:
  37. - tb-node.hybrid.env
  38. depends_on:
  39. - zookeeper
  40. - redis
  41. - postgres
  42. - cassandra
  43. tb-core2:
  44. env_file:
  45. - tb-node.hybrid.env
  46. depends_on:
  47. - zookeeper
  48. - redis
  49. - postgres
  50. - cassandra
  51. tb-rule-engine1:
  52. env_file:
  53. - tb-node.hybrid.env
  54. depends_on:
  55. - zookeeper
  56. - redis
  57. - postgres
  58. - cassandra
  59. tb-rule-engine2:
  60. env_file:
  61. - tb-node.hybrid.env
  62. depends_on:
  63. - zookeeper
  64. - redis
  65. - postgres
  66. - cassandra