Content
You are here:
OpenProject Docker container not accessible after running in AWS EC2
Added by Debabrat panda about 4 years ago
Hi There,
Before trying to run the OpenProject:11 image in EC2, I've tried the following
- Able to run and access the OpenProject container app in localhost
- Able to run and access the OpenProject container app from Linode
- Then tried to run the Open project container app from EC2
- Added appropriate inbound rule under security group
- Install docker and started the docker service
- tested a sample container - Able to access the sample app using EC2 public IP
When I started the OpenProject container in EC2, I do not see any error log. But, the app is not accessible using EC2 Public IP.
Below docker run command used to test in all environments i.e. localhost, Linode, and AWS.
docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=xxxxxxxx -v /var/lib/openproject/pgdata:/var/openproject/pgdata -v /var/lib/openproject/assets:/var/openproject/assets \ openproject/community:11
Appreciate your input on this.
Thanks
Deb
Replies (4)
Hello, what inbound rule did you add to your security group?
I have tried by adding below
Can you confirm that you can access OpenProject from within the EC2 instance by running
curl localhost:8080
?If not, have a look at the logs with
docker logs openproject
I am able to access the OpenProject app within the EC2 instance using
$ curl http://localhost:8080
Excerpt of Curl output
HTTP/1.1 200 OK
**Date**: Wed, 14 Oct 2020 05:48:59 GMT
**Server**: nginx/1.18.0 + Phusion Passenger 6.0.6
**Content-Type**: text/html; charset=utf-8
**Status**: 200 OK
**Cache-Control**: max-age=0, private, must-revalidate
**Vary**: Accept-Encoding
**Referrer-Policy**: origin-when-cross-origin
**X-Permitted-Cross-Domain-Policies**: none
**X-XSS-Protection**: 1; mode=block
**X-Request-Id**: 9eafc895-e6fa-463e-b143-8ae4748b7431
Below is the application log while starting.