我启动了一个带有mysql数据库的.net服务,并且所有容器都在运行
109eeaf260e8 authentication_service:最新的“dotnet out / Authenti …”9秒前最多7秒0.0 ….
你正在定义一个 authentication_service 与端口映射
authentication_service
ports: - 5003:80
在您的docker-compose.yml中。这意味着docker主机上端口5003上的请求将被转发到authentication_service-container的端口80。
所以(如果authentication_service的容器真的在端口80上侦听),你必须在docker主机上触发的URL是:
http://localhost:5003/api/authentication/5