docker-compose.postgres.volumes.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. volumes:
  20. - postgres-db-volume:/var/lib/postgresql/data
  21. tb-core1:
  22. volumes:
  23. - tb-log-volume:/var/log/thingsboard
  24. tb-core2:
  25. volumes:
  26. - tb-log-volume:/var/log/thingsboard
  27. tb-rule-engine1:
  28. volumes:
  29. - tb-log-volume:/var/log/thingsboard
  30. tb-rule-engine2:
  31. volumes:
  32. - tb-log-volume:/var/log/thingsboard
  33. tb-coap-transport:
  34. volumes:
  35. - tb-coap-transport-log-volume:/var/log/tb-coap-transport
  36. tb-lwm2m-transport:
  37. volumes:
  38. - tb-lwm2m-transport-log-volume:/var/log/tb-lwm2m-transport
  39. tb-http-transport1:
  40. volumes:
  41. - tb-http-transport-log-volume:/var/log/tb-http-transport
  42. tb-http-transport2:
  43. volumes:
  44. - tb-http-transport-log-volume:/var/log/tb-http-transport
  45. tb-mqtt-transport1:
  46. volumes:
  47. - tb-mqtt-transport-log-volume:/var/log/tb-mqtt-transport
  48. tb-mqtt-transport2:
  49. volumes:
  50. - tb-mqtt-transport-log-volume:/var/log/tb-mqtt-transport
  51. tb-snmp-transport:
  52. volumes:
  53. - tb-snmp-transport-log-volume:/var/log/tb-snmp-transport
  54. volumes:
  55. postgres-db-volume:
  56. external: true
  57. name: ${POSTGRES_DATA_VOLUME}
  58. tb-log-volume:
  59. external: true
  60. name: ${TB_LOG_VOLUME}
  61. tb-coap-transport-log-volume:
  62. external: true
  63. name: ${TB_COAP_TRANSPORT_LOG_VOLUME}
  64. tb-lwm2m-transport-log-volume:
  65. external: true
  66. name: ${TB_LWM2M_TRANSPORT_LOG_VOLUME}
  67. tb-http-transport-log-volume:
  68. external: true
  69. name: ${TB_HTTP_TRANSPORT_LOG_VOLUME}
  70. tb-mqtt-transport-log-volume:
  71. external: true
  72. name: ${TB_MQTT_TRANSPORT_LOG_VOLUME}
  73. tb-snmp-transport-log-volume:
  74. external: true
  75. name: ${TB_SNMP_TRANSPORT_LOG_VOLUME}