0
私は現在、個人的にうまく動作するドッカー画像を持っています。 コンテナ内でASP.NET Web APIコアアプリケーションを実行します。弾性ビーントーチとドッカーの起動エラー
AWSにはNGINXがあり、Elastic Beanstalkが起動したときに、このアプリケーションの新しいバージョンをアップロードするときにこのエラーが返されます。私が間違っていることを誰でも指摘できますか?
-------------------------------------
/var/log/nginx/error.log
-------------------------------------
2017/09/27 12:02:53 [emerg] 3161#0: no host in upstream "docker" in /etc/nginx/conf.d/elasticbeanstalk-nginx-docker-upstream.conf:21
これは私のDockerrun.aws.json
{
"AWSEBDockerrunVersion": "1"
}
.ebextensions/00_nginx.configファイル
files:
"/etc/nginx/sites-available/elasticbeanstalk-nginx-docker-proxy-timeout.conf" :
mode: "000755"
owner: root
group: root
content: |
upstream docker {
server 127.0.0.1:52940;
keepalive 360;
}
client_max_body_size 100G;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
proxy_read_timeout 3600;
client_body_timeout 3600;
client_header_timeout 360;
send_timeout 3600;
keepalive_timeout 360;
container_commands:
01-restart-nginx:
command: /sbin/service nginx restart
と私のDockerfileある
FROM microsoft/aspnetcore:1.1
LABEL name "<my_application>"
WORKDIR /app
ENV ASPNETCORE_URLS http://*:52940
EXPOSE 52940
ENTRYPOINT ["dotnet", "<my_application>.dll"]
COPY out .
に行く含まれて含まれています! –