docker-compose.yml 764 B

12345678910111213141516171819202122232425262728293031323334
  1. version: "3.8"
  2. services:
  3. aj-report:
  4. container_name: aj-report
  5. build:
  6. context: ../..
  7. restart: always
  8. ports:
  9. - 9095:9095
  10. environment:
  11. TZ: "Asia/Shanghai"
  12. volumes:
  13. - ./build/aj-report-logs:/opt/aj-report/logs
  14. depends_on:
  15. - aj-report-mysql
  16. aj-report-mysql:
  17. container_name: aj-report-mysql
  18. image: mysql:5.7
  19. restart: always
  20. ports:
  21. - 3306:3306
  22. environment:
  23. MYSQL_ROOT_PASSWORD: 123456
  24. TZ: "Asia/Shanghai"
  25. command:
  26. --character-set-server=utf8mb4
  27. --collation-server=utf8mb4_general_ci
  28. --explicit_defaults_for_timestamp=true
  29. --lower_case_table_names=1
  30. --max_allowed_packet=128M
  31. volumes:
  32. - ./build/aj-report-mysql:/var/lib/mysql