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.

30 lines
755 B

  1. version: "3.8"
  2. services:
  3. server:
  4. build:
  5. context: ./
  6. dockerfile: ./dockerfile_server
  7. container_name: gva-server # 容器名
  8. restart: always
  9. ports:
  10. - '8888:8888'
  11. depends_on:
  12. - mysql
  13. - redis
  14. mysql:
  15. image: registry.cn-shanghai.aliyuncs.com/gva/gva-mysql:1.1
  16. container_name: gva-mysql
  17. command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci #设置utf8字符集
  18. restart: always
  19. ports:
  20. - "13306:3306" # host物理直接映射端口为6606
  21. environment:
  22. MYSQL_ROOT_PASSWORD: "Aa@6447985" # root管理员用户密码
  23. redis:
  24. image: redis:6.0.6
  25. container_name: gva-redis # 容器名
  26. restart: always
  27. ports:
  28. - '6379:6379'