Skip to content

link78/aspnet3.1-containers

Repository files navigation

# aspnet3.1-containers
ASP.NET Core 3.1 MVC application with SQL Server
This project have all the know you need to compile into containers images.
ASP.NET CORE Web app is mapped to port 80 and sql server is mapped to 1433 with SA as the user and Marine7815@@ as the password.
To run web application with sql server:
1. clone it
2. Navigate to root project
3. Make sure you have installed docker and docker-compose
4. Run => docker-compose up --build or docker-compose up --build -d to skip logs
5. To shutdown just docker-compose down and to view logs run docker-compose logs
And you want to run using docker use those image burk1212/petsappcore for the webapp and burk1212/petsdbcore for the sql server

docker run -d -p 1433:1433 burk1212/petsdbcore (run this first)
docker run -d -p 8080:80 burk1212/petsappcore

or create docker-compose file and add this content:
version: "3"
services:

    sql2017:
      image: burk1212/petsdbcore
      container_name: sql2017
      ports:
        - "1433:1433"
      tty: true

      depends_on:
        - web

    web:
      image: burk1212/petsappcore
      container_name: webcore
      ports:
        - "8080:80"
      environment:
        - ASPNETCORE_ENVIRONMENT=Development
    
    
    
  Save the file and run: docker-compose up -d
  Check for logs: docker-compose logs and to View container: docker-compose ps

About

ASP.NET Core 3.1 MVC application with SQL Server using SQL docker-compose to deploy in docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages