docker-compose-base.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. networks:
  22. - jeecg-boot
  23. jeecg-boot-redis:
  24. image: redis:5.0
  25. ports:
  26. - 6379:6379
  27. restart: always
  28. container_name: jeecg-boot-redis
  29. hostname: jeecg-boot-redis
  30. networks:
  31. - jeecg-boot
  32. networks:
  33. jeecg-boot:
  34. name: jeecg_boot
  35. # jeecg-boot-rabbitmq:
  36. # image: rabbitmq:3.7.7-management
  37. # ports:
  38. # - 5672:5672
  39. # - 15672:15672
  40. # restart: always
  41. # container_name: jeecg-boot-rabbitmq
  42. # hostname: jeecg-boot-rabbitmq
  43. # environment:
  44. # RABBITMQ_DEFAULT_USER: guest
  45. # RABBITMQ_DEFAULT_PASS: guest