# Running Discourse docker image in the environment on Amazon EC2 Container Service

**URL:** <https://meta.discourse.org/t/running-discourse-docker-image-in-the-environment-on-amazon-ec2-container-service/65352>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [29 يونيو 2017، 7:28م UTC](https://meta.discourse.org/t/running-discourse-docker-image-in-the-environment-on-amazon-ec2-container-service/65352 "2017-06-29T19:28:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![golden\_eagle](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@golden\_eagle](https://meta.discourse.org/u/golden_eagle)\
**Post date:** [29 يونيو 2017، 7:57م UTC](https://meta.discourse.org/t/running-discourse-docker-image-in-the-environment-on-amazon-ec2-container-service/65352/4 "2017-06-29T19:57:05Z")

</div>

I will tell you what I did from start. Firstly I cloned the official discourse docker in my terminal. Then did

`./discourse-setup`

Then Edited containers/app.yml

`./launcher rebuild app`

Then pushed it on my git account.  
Made a repo on AWS EC2 container service.  
Then pushed the image that I had on my machine to the EC2 repo.  
Then In task definition, I added 2 containers in my task definition. One is discourse and the other is about pulling discourse docker image from the environment I have deployed on as an independent entity.

I was not sure about volumes so I didn’t add it in my task definition.

Here are details of port mapping of my discourse container:

```
Host Port	Container Port	Protocol
80 443 TCP

```

Port mapping for another container

```
Host Port Container Port Protocol
0 443 TCP

```

@Falco Can you tell me what I did wrong?

---

_[View the full topic](https://meta.discourse.org/t/running-discourse-docker-image-in-the-environment-on-amazon-ec2-container-service/65352)._
