container

command module
v0.0.0-...-252bcb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

Container

介绍

从零开始搭建Go的GIN项目并部署到Docker, 使用K8s容器编排

软件架构

系统架构

技术选型
名称 地址 备注
GIN https://github.com/gin-gonic/gin Web框架
Gorm https://github.com/jinzhu/gorm ORM框架
Swag https://github.com/swaggo/swag/blob/master/README_zh-CN.md 接口文档
Redis https://github.com/go-redis/redis 缓存
Mysql https://github.com/jinzhu/gorm/dialects/mysql 关系型数据库驱动
部署
  • 将项目整个文件夹拷贝到服务器上
  • 导航至项目文件夹
  • 使用命令docker build -f Dockerfile -t <tag> .根据Dockerfile创建镜像
  • 使用命令docker run -idt -p 9000:9000 <image_name>构建容器

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL