docker-compose.yml 917 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # 使用说明 V4.6.0
  2. # 1. 使用docker-compose 宿主机不需要配置host来发现
  3. # 2. 无需修改源码,根目录 docker-compose up 即可
  4. # 3. 静静等待服务启动
  5. version: '3'
  6. services:
  7. pigx-mysql:
  8. build:
  9. context: ./db
  10. environment:
  11. MYSQL_ROOT_HOST: "%"
  12. MYSQL_ROOT_PASSWORD: root
  13. restart: always
  14. container_name: pigx-mysql
  15. image: pigx-mysql
  16. ports:
  17. - 3306:3306
  18. volumes:
  19. - ./pigx-mysql:/var/lib/mysql
  20. command: --lower_case_table_names=1
  21. pigx-redis:
  22. container_name: pigx-redis
  23. image: redis:6.2.6
  24. restart: always
  25. ports:
  26. - 6379:6379
  27. pigx-upms:
  28. build:
  29. context: ./pigx-upms/pigx-upms-biz
  30. restart: always
  31. container_name: pigx-upms
  32. image: pigx-upms
  33. pigx-codegen:
  34. build:
  35. context: ./pigx-visual/pigx-codegen
  36. restart: always
  37. image: pigx-codegen
  38. container_name: pigx-codegen