时速云技术周刊《一周 Docker 镜像精选》 http://weekly.tenxcloud.com/
1)创建 mysql 容器实例
2)创建 docker-weekly 实例,并指定 mysql 配置信息,在高级设置里配置如下环境变量
DB_HOST <mysql:3306>
DB_USER <admin>
DB_PASS <admin>
Step 1: fork [email protected]:tenxcloud/docker-weekly.git
cd ~/git && git clone [email protected]:Samurais/docker-weekly.git
cd docker-weekly
export GOPATH=~/git/docker-weekly
cd src/docker-weekly
go get github.com/astaxie/beego
go run main.go
open http://localhost:8080/