# Document for installing on AWS ECS

**URL:** https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257
**Category:** Self-hosting
**Created:** [December 30, 2015, 1:04pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257 "2015-12-30T13:04:45Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![keepcosmos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keepcosmos/32/108882_2.png) [@keepcosmos](https://meta.discourse.org/u/keepcosmos)
#### Post date: [December 30, 2015, 1:04pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/1 "2015-12-30T13:04:45Z")

</div>

Is there any plan to add document about installing on AWS EC2 Container Service?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [December 30, 2015, 4:51pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/2 "2015-12-30T16:51:54Z")

</div>

The official Discourse team does hosting on [bare metal](http://blog.discourse.org/2015/11/our-new-datacenter-cabinet/) linux servers, so we don’t have any experience with hosting Discourse on ECS.

We would need someone in the community to figure this out and document it.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 30, 2015, 5:16pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/3 "2015-12-30T17:16:39Z")

</div>

I think this would be needed to run on ECS:

> [@Can Discourse ship frequent Docker images that do not need to be bootstrapped?](https://meta.discourse.org/t/can-discourse-ship-frequent-docker-images-that-do-not-need-to-be-bootstrapped/33205):
>
> There is this [open issue](https://github.com/discourse/discourse_docker/issues/186) (which I just closed) on Discourse Docker repo asking Discourse should behave like a standard docker image a docker user excepts to be able to run discourse without a special launcher. to define multiple containers (redis, postgres, discourse,..), links and volumes, docker-compose should be used instead. [Docker Compose | Docker Docs](https://docs.docker.com/compose/) The question is somewhat misguided, but I would like to address a broader one of Can Discourse ship frequent Docker images that do …

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [December 31, 2015, 2:49pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/4 "2015-12-31T14:49:00Z")

</div>

@Frez created a guide on this:

> [@Install Discourse on Amazon Web Services (AWS)](https://meta.discourse.org/t/install-discourse-on-amazon-ws-with-cloudflare/37323):
>
> warning This installation method is not officially endorsed. Use at your own risk. The Discourse team only recommend installation using the [official install guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) This guide originally included information about cloudflare, but @pfaffman thinks that conflating AWS and cloudflare is a bad idea. If you’re an AWS user, AWS Cloudfront makes much more sense than Cloudflare. @pfaffman edited this a good bit on 2022.11.21; if something seems broken, blame me. If it works, thank the original auth…

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 31, 2015, 9:50pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/5 "2015-12-31T21:50:12Z")

</div>

Sorry if I’m mistaken but ain’t ECS and EC2 different things?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [December 31, 2015, 9:55pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/6 "2015-12-31T21:55:44Z")

</div>

> [@Falco](#):
>
> I think this would be needed to run on ECS

Not necessarily. You could fairly easily bootstrap a configured image locally, then push that to a private registry, and point ECS at it.

> [@Falco](#):
>
> Sorry if I’m mistaken but ain’t ECS and EC2 different things?

Yes, they are. EC2 is VPSes, ECS is Amazon running Docker for you. AWS’ insistence on confusing TLAs does nothing for general comprehension of their services.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 31, 2015, 11:31pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/7 "2015-12-31T23:31:56Z")

</div>

> [@mpalmer](#):
>
> AWS’ insistence on confusing TLAs does nothing for general comprehension of their services.

This is a good list:

> **[Amazon Web Services In Plain English](https://expeditedsecurity.com/aws-in-plain-english/)**
>
> It's named what? Figure out what Amazon Web Services should actually have been called.

---

<div class="post-metadata">

### Author: ![sidonaldson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidonaldson/32/121830_2.png) [@sidonaldson](https://meta.discourse.org/u/sidonaldson)
#### Post date: [March 22, 2016, 12:06pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/8 "2016-03-22T12:06:44Z")

</div>

AWS offer a Elastic Beanstalk install option which creates a single instance docker app.

The recommended method is via a Dockerrun.aws.json which pulls a docker image.  
You can even add env keypairs during the launch setup.  
Has anyone tried this yet?

I’m no expert but this seems to get close to a build

```plaintext
{
  "TestDiscourse": "1",
  "Image": {
    "Name": "samsaffron/discourse",
    "Update": "true"
  },
  "Ports": [
    {
      "ContainerPort": "80"
    }
  ],
  "Volumes": [
    {
      "HostDirectory": "/var/discourse/shared"
    }
  ],
  "Logging": "/var/log/nginx"
}

```

---

<div class="post-metadata">

### Author: ![emanuelet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emanuelet/32/121710_2.png) [@emanuelet](https://meta.discourse.org/u/emanuelet)
#### Post date: [April 19, 2016, 11:15pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/9 "2016-04-19T23:15:10Z")

</div>

Does someone has an example for the Multi-container configuration?

---

<div class="post-metadata">

### Author: ![kourou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kourou/32/62572_2.png) [@kourou](https://meta.discourse.org/u/kourou)
#### Post date: [September 30, 2016, 12:21pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/10 "2016-09-30T12:21:53Z")

</div>

It would be really helpful if anyone could point out how to set up Discourse in AWS ECS.

The main reason for being interested in ECS particularly is the ability it provides (through load balancer and autoscaling groups) to launch new instances automatically when needed. This means we can start with a “small” instance type, like t2.micro or t2.small, and have it expand when needed.

Thank you,  
Ilias

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [September 30, 2016, 3:40pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/11 "2016-09-30T15:40:44Z")

</div>

> [@kourou](#):
>
> It would be really helpful if anyone could point out how to set up Discourse in AWS ECS.

ATM, Discourse doesn’t work on ECS.

There was [some discussion](https://meta.discourse.org/t/can-discourse-ship-frequent-docker-images-that-do-not-need-to-be-bootstrapped/33205) about it, but it would be a major change, and some drawbacks.

---

<div class="post-metadata">

### Author: ![Kevin\_Wildenradt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kevin_wildenradt/32/62507_2.png) [@Kevin\_Wildenradt](https://meta.discourse.org/u/Kevin_Wildenradt)
#### Post date: [November 15, 2016, 8:58pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/12 "2016-11-15T20:58:52Z")

</div>

Since the title and body of your post are different I am unsure if you want ECS or EC2, but I found this helpful guide for setting up Discourse with EC2.

[https://stroupaloop.com/blog/discourse-setup-using-aws/](https://stroupaloop.com/blog/discourse-setup-using-aws/)

---

<div class="post-metadata">

### Author: ![Tango](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tango/32/97926_2.png) [@Tango](https://meta.discourse.org/u/Tango)
#### Post date: [August 15, 2018, 6:48am UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/13 "2018-08-15T06:48:05Z")

</div>

How did you get on with this?

---

<div class="post-metadata">

### Author: ![kourou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kourou/32/62572_2.png) [@kourou](https://meta.discourse.org/u/kourou)
#### Post date: [August 16, 2018, 6:56am UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/14 "2018-08-16T06:56:47Z")

</div>

I did not ☹

I ended up having Discourse in a DigitalOcean droplet and the rest of my site in AWS.

---

<div class="post-metadata">

### Author: ![yiksanchan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yiksanchan/32/202094_2.png) [@yiksanchan](https://meta.discourse.org/u/yiksanchan)
#### Post date: [December 3, 2020, 6:44am UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/15 "2020-12-03T06:44:37Z")

</div>

I have added the guide on how to host discourse on AWS EC2 [[Guide] Host Discourse on AWS EC2](https://meta.discourse.org/t/guide-host-discourse-on-aws-ec2/172075)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:36pm UTC](https://meta.discourse.org/t/document-for-installing-on-aws-ecs/37257/16 "2024-06-08T12:36:54Z")

</div>

This topic was automatically closed after 3082 days. New replies are no longer allowed.
