docker-compose-dev.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. #
  2. # Copyright 2016-present the 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. version: '3'
  17. services:
  18. register:
  19. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-center-register:4.0.0-nacos
  20. restart: on-failure
  21. ports:
  22. #服务器配置
  23. - "8849:8849"
  24. - "9848:9848"
  25. - "9555:9555"
  26. #服务器配置
  27. - "9849:9849"
  28. environment:
  29. - PREFER_HOST_MODE=hostname
  30. - MODE=standalone
  31. - SPRING_DATASOURCE_PLATFORM=mysql
  32. - JVM_XMS=512m
  33. - JVM_XMX=512m
  34. - JVM_XMN=256m
  35. - JVM_MS=128m
  36. - JVM_MMS=256m
  37. container_name: dc3-center-register
  38. hostname: dc3-center-register
  39. depends_on:
  40. - mysql
  41. volumes:
  42. - logs:/home/nacos/logs
  43. logging:
  44. driver: json-file
  45. options:
  46. max-size: '20m'
  47. max-file: '20'
  48. networks:
  49. dc3net:
  50. aliases:
  51. - dc3-center-register
  52. mysql:
  53. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-mysql:2024.3.0.dev
  54. restart: on-failure
  55. ports:
  56. - '33306:3306'
  57. environment:
  58. - MYSQL_ROOT_PASSWORD=dc3
  59. container_name: dc3-mysql
  60. hostname: dc3-mysql
  61. volumes:
  62. - mysql:/var/lib/mysql
  63. logging:
  64. driver: json-file
  65. options:
  66. max-size: '20m'
  67. max-file: '20'
  68. networks:
  69. dc3net:
  70. aliases:
  71. - dc3-mysql
  72. mongo:
  73. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-mongo:2024.3.0.dev
  74. restart: on-failure
  75. ports:
  76. - '37017:27017'
  77. container_name: dc3-mongo
  78. hostname: dc3-mongo
  79. volumes:
  80. - mongo_config:/data/configdb
  81. - mongo_db:/data/db
  82. logging:
  83. driver: json-file
  84. options:
  85. max-size: '20m'
  86. max-file: '20'
  87. networks:
  88. dc3net:
  89. aliases:
  90. - dc3-mongo
  91. redis:
  92. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-redis:2024.3.0.dev
  93. restart: on-failure
  94. ports:
  95. - '36379:6379'
  96. container_name: dc3-redis
  97. hostname: dc3-redis
  98. volumes:
  99. - redis:/data
  100. logging:
  101. driver: json-file
  102. options:
  103. max-size: '20m'
  104. max-file: '20'
  105. networks:
  106. dc3net:
  107. aliases:
  108. - dc3-redis
  109. rabbitmq:
  110. image: registry.cn-beijing.aliyuncs.com/dc3/dc3-rabbitmq:2024.3.0.dev
  111. restart: on-failure
  112. ports:
  113. - '5672:5672'
  114. - '1883:1883'
  115. - '8883:8883'
  116. - '61613:61613'
  117. - '15672:15672'
  118. container_name: dc3-rabbitmq
  119. hostname: dc3-rabbitmq
  120. volumes:
  121. - rabbitmq:/var/lib/rabbitmq
  122. logging:
  123. driver: json-file
  124. options:
  125. max-size: '20m'
  126. max-file: '20'
  127. networks:
  128. dc3net:
  129. aliases:
  130. - dc3-rabbitmq
  131. portainer:
  132. image: portainer/portainer:1.24.2
  133. command: -H unix:///var/run/docker.sock
  134. restart: on-failure
  135. ports:
  136. - '9000:9000'
  137. container_name: portainer
  138. hostname: dc3-portainer
  139. volumes:
  140. - portainer:/data
  141. - /var/run/docker.sock:/var/run/docker.sock
  142. logging:
  143. driver: json-file
  144. options:
  145. max-size: '20m'
  146. max-file: '20'
  147. networks:
  148. dc3net:
  149. aliases:
  150. - dc3-portainer
  151. volumes:
  152. logs:
  153. mysql:
  154. mongo_config:
  155. mongo_db:
  156. redis:
  157. rabbitmq:
  158. portainer:
  159. networks:
  160. dc3net:
  161. driver: bridge
  162. ...