Skip to content

sheng-jie/Docker.NetCore.MySql

Repository files navigation

Dockerize And Deploy ASP.NET Core 2.0 + Mysql + Nginx With Docker-Compose

This is an example web application to show how to use ASP.Net Core with MySQL database and use Nginx as reverse proxy, and deploy using Docker-Compose.

How to use?

  1. git clone https://github.com/yanshengjie/Docker.NetCore.MySql.git
  2. cd Docker.NetCore.MySql
  3. docker-compose up -d
  4. curl -i http://localhost:9090/api/products

For detail reference:.NET Core+MySql+Nginx 容器化部署

Reference

  1. mysql -Docker Documentation
  2. Hello Docker
  3. .NET Core容器化@Docker
  4. .NET Core容器化之多容器应用部署@Docker-Compose