docker-compose-dev.yml 3.6 KB

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