You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
841 B

  1. # 关于Compose文件的具体说明,请参考以下链接:
  2. # https://docs.docker.com/compose/compose-file/
  3. version: "3.5"
  4. services:
  5. # 数据库的各种配置参数,请参考以下链接:
  6. # https://github.com/piexlmax/gin-vue-admin/blob/master/QMPlusServer/db/qmplus.sql#L4-L8
  7. # https://github.com/piexlmax/gin-vue-admin/blob/master/QMPlusServer/static/config/config.json#L8-L14
  8. database:
  9. image: mysql:5.6
  10. ports:
  11. - 3306:3306
  12. volumes:
  13. - ./QMPlusServer/db:/docker-entrypoint-initdb.d
  14. environment:
  15. MYSQL_ROOT_PASSWORD: Aa@6447985
  16. MYSQL_DATABASE: qmPlus
  17. user: root
  18. server:
  19. build: ./QMPlusServer
  20. ports:
  21. - 8080:8080
  22. - 8888:8888
  23. environment:
  24. MYSQLHOST: database
  25. working_dir: /go/src/gin-vue-admin
  26. restart: always
  27. depends_on:
  28. - database