1. Docker-compose Install Python 2.7 pip pip install docker-compose FAQ: Workaround: Pip Install Pypiwin32 2. Docker-compose.yaml Docker-compose.yaml files are as follows:
version: ‘2.1‘
services:
db:
image: microsoft/mssql-server-windows-developer
environment:
sa_password: "Password1"
ACCEPT_EULA: "Y"
ports:
- "1433:1433" # REMARK: This is currently required, needs investigation
healthcheck:
test : [ "CMD" , "sqlcmd" span class= "str" > "-U" "sa" Span class= "pun", "Password1" span class= "str" > "-Q" , "SELECT 1"
interval: 1s
retries: 20
web:
build:
context: .
dockerfile: Dockerfile.windows
environment:
- "Data:DefaultConnection:ConnectionString=Server=db,1433;Database=MusicStore;User Id=sa;Password=Password1;MultipleActiveResultSets=True"
depends_on:
db:
condition: service_healthy
ports:
- "5000:5000"
networks:
default:
external:
name: nat
Reference Address: Https://github.com/friism/MusicStore
Null
Windows 2016 container Management