docker-compose.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. image: jeecg-boot-mysql
  13. command:
  14. --character-set-server=utf8mb4
  15. --collation-server=utf8mb4_general_ci
  16. --explicit_defaults_for_timestamp=true
  17. --lower_case_table_names=1
  18. --max_allowed_packet=128M
  19. --default-authentication-plugin=caching_sha2_password
  20. ports:
  21. - 3306:3306
  22. networks:
  23. - jeecg-boot
  24. jeecg-boot-redis:
  25. image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/redis:5.0
  26. ports:
  27. - 6379:6379
  28. restart: always
  29. hostname: jeecg-boot-redis
  30. container_name: jeecg-boot-redis
  31. networks:
  32. - jeecg-boot
  33. jeecg-boot-system:
  34. build:
  35. context: ./jeecg-module-system/jeecg-system-start
  36. restart: on-failure
  37. depends_on:
  38. - jeecg-boot-mysql
  39. - jeecg-boot-redis
  40. container_name: jeecg-boot-system
  41. image: jeecg-boot-system
  42. hostname: jeecg-boot-system
  43. ports:
  44. - 8080:8080
  45. networks:
  46. - jeecg-boot
  47. networks:
  48. jeecg-boot:
  49. name: jeecg_boot