docker-compose-base.yml 975 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. version: '2'
  2. services:
  3. jeecg-boot-mysql:
  4. build:
  5. context: ../db
  6. environment:
  7. MYSQL_ROOT_PASSWORD: root
  8. MYSQL_ROOT_HOST: '%'
  9. TZ: Asia/Shanghai
  10. restart: always
  11. container_name: jeecg-boot-mysql
  12. command:
  13. --character-set-server=utf8mb4
  14. --collation-server=utf8mb4_general_ci
  15. --explicit_defaults_for_timestamp=true
  16. --lower_case_table_names=1
  17. --max_allowed_packet=128M
  18. --default-authentication-plugin=caching_sha2_password
  19. ports:
  20. - 3306:3306
  21. jeecg-boot-redis:
  22. image: redis:5.0
  23. ports:
  24. - 6379:6379
  25. restart: always
  26. container_name: jeecg-boot-redis
  27. hostname: jeecg-boot-redis
  28. jeecg-boot-rabbitmq:
  29. image: rabbitmq:3.7.7-management
  30. ports:
  31. - 5672:5672
  32. - 15672:15672
  33. restart: always
  34. container_name: jeecg-boot-rabbitmq
  35. hostname: jeecg-boot-rabbitmq
  36. environment:
  37. RABBITMQ_DEFAULT_USER: guest
  38. RABBITMQ_DEFAULT_PASS: guest