首页 > 代码库 > windows 2016 容器管理
windows 2016 容器管理
1. docker-compose 安装
python 2.7
pip
pip install docker-compose
常见问题:
解决方法:
pip install pypiwin32
2. docker-compose.yaml
docker-compose.yaml 文件如下:
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", "-U", "sa", "-P", "Password1", "-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
参考地址:
https://github.com/friism/MusicStore
null
windows 2016 容器管理
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。