docker-compose.yml
version: "3"
services:
coreapi:
build:
context: ./theapi
dockerfile: Dockerfile
ports:
- "5000:5000"
sqlserver:
build:
context: ./sqlserver
ports:
- "1433:1433"
environment:
- ACCEPT_EULA="Y"
- SA_PASSWORD="Pwd12345!"
angular:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "4300:4200"
我在stackoverflow上读了类似的文章,并在我的VM上添加了打开的入站端口。
但无济于事: