docker-compose-dev.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #
  2. # Copyright 2016-present the IoT DC3 original author or 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. # https://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. services:
  17. mysql:
  18. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-mysql:2024.3.0.dev
  19. restart: always
  20. ports:
  21. - '33306:3306'
  22. environment:
  23. - MYSQL_ROOT_PASSWORD=dc3
  24. container_name: dc3-mysql
  25. hostname: dc3-mysql
  26. volumes:
  27. - mysql_data:/data
  28. - mysql_lib:/var/lib/mysql
  29. logging:
  30. driver: json-file
  31. options:
  32. max-size: '10M'
  33. max-file: '20'
  34. networks:
  35. dc3net:
  36. aliases:
  37. - dc3-mysql
  38. mongo:
  39. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-mongo:2024.3.0.dev
  40. restart: always
  41. ports:
  42. - '37017:27017'
  43. container_name: dc3-mongo
  44. hostname: dc3-mongo
  45. volumes:
  46. - mongo_data:/data/db
  47. - mongo_config:/data/configdb
  48. logging:
  49. driver: json-file
  50. options:
  51. max-size: '10M'
  52. max-file: '20'
  53. networks:
  54. dc3net:
  55. aliases:
  56. - dc3-mongo
  57. redis:
  58. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-redis:2024.3.0.dev
  59. restart: always
  60. ports:
  61. - '36379:6379'
  62. container_name: dc3-redis
  63. hostname: dc3-redis
  64. volumes:
  65. - redis:/data
  66. logging:
  67. driver: json-file
  68. options:
  69. max-size: '10M'
  70. max-file: '20'
  71. networks:
  72. dc3net:
  73. aliases:
  74. - dc3-redis
  75. rabbitmq:
  76. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-rabbitmq:2024.3.0.dev
  77. restart: always
  78. ports:
  79. - '5672:5672'
  80. - '2883:1883'
  81. - '3883:8883'
  82. - '15672:15672'
  83. container_name: dc3-rabbitmq
  84. hostname: dc3-rabbitmq
  85. volumes:
  86. - rabbitmq:/var/lib/rabbitmq
  87. logging:
  88. driver: json-file
  89. options:
  90. max-size: '10M'
  91. max-file: '20'
  92. networks:
  93. dc3net:
  94. aliases:
  95. - dc3-rabbitmq
  96. volumes:
  97. mysql_data:
  98. mysql_lib:
  99. mongo_data:
  100. mongo_config:
  101. redis:
  102. rabbitmq:
  103. networks:
  104. dc3net:
  105. driver: bridge
  106. ...