Vu NG
Vu NG

Reputation: 290

Running a Docker container on AWS Elastic Beanstalk - 502 Bad Gateway nginx/1.6.2

{
	"AWSEBDockerrunVersion": "1",
 	"Image": {
		"Name": "kazenguyen/paymentsystem:v1",
		"Update": "true"
	},
	"Ports": [
	{
		"ContainerPort": "8080"
	}
	]
}

The nginx logs don't show anything. How can I fix this?

Upvotes: 2

Views: 2306

Answers (1)

Vu NG
Vu NG

Reputation: 290

Root cause: - Choose EC instance (t1.micro) is not enough memory to run my webapp, so Glassfish crashes.

Soloution: - Choose EC instance (c1.xlarge) which is more memory than t1.micro.

Upvotes: 2

Related Questions