I have installed discourse. I have the docker image of discourse. Can anybody help me how to run Discourse docker image in the environment on Amazon EC2 Container Service?
I am getting few errors when I m trying to run the task. It’s getting stopped and giving me errors like this in my logs:
I, [2017-06-27T18:26:47.304367 #13] INFO -- : Loading --stdin
/pups/lib/pups/config.rb:23:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
from /pups/lib/pups/cli.rb:27:in `new'
from /pups/lib/pups/cli.rb:27:in `run'
from /pups/bin/pups:8:in `<main>'
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:
I pushed it on my git so that I can have some back up if ever I loose my work on my machine. I have pushed the image on my AWS EC2 repo and that is a docker compatible. So we don’t have to worry about git at all. My main question is why is it not working for my EC2 environment?