我已经用dotnet core 2.2设置了docker,当我使用docker-compose up时,它可以正常工作,并说它正在侦听8080端口,但是我看不到浏览器中的任何输出或调用api的输出。这是我的docker-compose文件:
version: '3.0'
services:
db:
image: mysql:latest
environment:
MYSQL_DATABASE: test
MYSQL_USER: root
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
volumes:
- dbdata:/var/lib/mysql
- _MySQL_Init_Script:/docker-entrypoint-initdb.d
restart: always
onlinesm.logs:
image: test
build:
context: .
ports:
- "8080:80"
volumes:
dbdata: {}
_MySQL_Init_Script : {}