docker-compose-base.yml 925 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. - 3305: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-management
  30. # image: rabbitmq:3
  31. # ports:
  32. # - 5672:5672
  33. # # - 15672:15672
  34. # restart: always
  35. # container_name: jeecg-boot-rabbitmq
  36. # hostname: jeecg-boot-rabbitmq