-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (30 loc) · 950 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP .NET Core service.
version: '3.4'
services:
ecommerceassessment:
image: ecommerceassessment
container_name: ecommerceassessment_api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5000
- DOTNET_USE_POLLING_FILE_WATCHER=1
- ASPNETCORE_ConnectionStrings__DefaultConnection=Server=db,1433;Database=ecommerceassessment;User Id=sa;Password=qwertY12@3
build:
context: .
dockerfile: ./Dockerfile
ports:
- 5000
- 5001
depends_on:
- db
db:
image: "mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04"
environment:
SA_PASSWORD: "qwertY12@3"
ACCEPT_EULA: "Y"
ports:
- "1433:1433"
volumes:
- sql_data_volume:/var/opt/mssql
volumes:
sql_data_volume: