docker-compose.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. version: '3'
  2. services:
  3. db:
  4. image: 'registry.cn-hangzhou.aliyuncs.com/72crm/mysql:5.7'
  5. container_name: mysql
  6. volumes:
  7. - ./conf/mysql/mysqld.cnf:/etc/mysql/conf.d/source/mysqld.cnf
  8. - ./data/mysql/data:/var/lib/mysql
  9. - ./data/mysql/init:/docker-entrypoint-initdb.d/
  10. - ./log/mysql:/var/log/mysql/
  11. - ./mysql.sh:/mysql.sh
  12. environment:
  13. - MYSQL_ROOT_PASSWORD=password
  14. - TZ=Asia/Shanghai
  15. - LANG=en_US.UTF-8
  16. networks:
  17. wkcrm_network:
  18. ports:
  19. - '3306:3306'
  20. entrypoint: /mysql.sh
  21. restart: always
  22. redis:
  23. image: 'registry.cn-hangzhou.aliyuncs.com/72crm/redis:6.0.8'
  24. container_name: redis
  25. volumes:
  26. - ./conf/redis/redis.conf:/etc/redis.conf
  27. ports:
  28. - '6379:6379'
  29. networks:
  30. wkcrm_network:
  31. command: [ "redis-server", "/etc/redis.conf" ]
  32. restart: always
  33. elasticsearch:
  34. image: registry.cn-hangzhou.aliyuncs.com/72crm/elasticsearch:6.8.6
  35. container_name: elasticsearch
  36. volumes:
  37. - ./data/elasticsearch/data:/usr/share/elasticsearch/data
  38. - ./data/elasticsearch/plugins:/usr/share/elasticsearch/plugins
  39. environment:
  40. - discovery.type=single-node
  41. - TZ=Asia/Shanghai
  42. - LANG=en_US.UTF-8
  43. ports:
  44. - "9200:9200"
  45. networks:
  46. wkcrm_network:
  47. restart: always
  48. nacos:
  49. image: registry.cn-hangzhou.aliyuncs.com/72crm/nacos:1.2.1
  50. container_name: nacos
  51. environment:
  52. - MODE=standalone
  53. - TZ=Asia/Shanghai
  54. - LANG=en_US.UTF-8
  55. depends_on:
  56. - db
  57. volumes:
  58. - ./conf/nacos:/home/nacos/conf
  59. - ./log/nacos:/home/nacos/logs
  60. - ./nacos.sh:/nacos.sh
  61. entrypoint: /nacos.sh -c 'echo "start web service here"'
  62. ports:
  63. - "8848:8848"
  64. networks:
  65. wkcrm_network:
  66. restart: always
  67. xxl-job-admin:
  68. image: registry.cn-hangzhou.aliyuncs.com/72crm/xxl-job:2.1.2
  69. container_name: xxl-job-admin
  70. volumes:
  71. - ./log/xxl-job:/data/applogs/xxl-job/
  72. environment:
  73. PARAMS: '--spring.datasource.url=jdbc:mysql://mysql:3306/xxl_job?Unicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=password'
  74. ports:
  75. - "8080:8080"
  76. networks:
  77. wkcrm_network:
  78. restart: always
  79. nginx:
  80. image: registry.cn-hangzhou.aliyuncs.com/72crm/nginx:latest
  81. container_name: "nginx"
  82. ports:
  83. - "80:80"
  84. volumes:
  85. - ./log/nginx/:/var/log/nginx/
  86. - ./conf/nginx/conf.d/:/etc/nginx/conf.d/
  87. - ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
  88. networks:
  89. wkcrm_network:
  90. restart: always
  91. wkcrm:
  92. image: registry.cn-hangzhou.aliyuncs.com/72crm/crm:11.3.4
  93. container_name: "wkcrm"
  94. environment:
  95. - TZ=Asia/Shanghai
  96. - LANG=en_US.UTF-8
  97. volumes:
  98. - ./wkcrm.sh:/wkcrm.sh
  99. - ./log/wkcrm:/opt/package/logs/
  100. - ./data/wkcrm/file:/opt/upload/
  101. ports:
  102. - "8443:8443"
  103. networks:
  104. wkcrm_network:
  105. entrypoint: /wkcrm.sh restart
  106. restart: always
  107. networks:
  108. wkcrm_network:
  109. external:
  110. name: wkcrm_network