docker-compose.yml 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. jeecg-boot-redis:
  23. image: redis:5.0
  24. ports:
  25. - 6379:6379
  26. restart: always
  27. hostname: jeecg-boot-redis
  28. container_name: jeecg-boot-redis
  29. jeecg-boot-system:
  30. build:
  31. context: ./jeecg-boot-module-system
  32. restart: on-failure
  33. depends_on:
  34. - jeecg-boot-mysql
  35. - jeecg-boot-redis
  36. container_name: jeecg-boot-system
  37. image: jeecg-boot-system
  38. hostname: jeecg-boot-system
  39. ports:
  40. - 8080:8080