【Go语言实战】 (12) Docker 部署 Gin+MySQL+Redis 项目

目录

  • 写在前面
  • 1. 安装docker
  • 2. 镜像启动
    • 2.1 MySQL
      • 2.1.1 拉取
      • 2.1.2 启动
    • 2.2 Redis
      • 2.2.1 拉取
      • 2.2.2 启动
  • 3. Dockerfile
  • 4. docker-compose.yml
  • 最后

写在前面

今天我们用 docker 部署我们的商城项目,主要有项目Mall、MySQL、Redis。
基于CentOS 7系统

项目地址

https://github.com/CocaineCong/gin-mall

项目结构

你可能感兴趣的:(Go实战100例,docker,mysql,redis)