How to run 2 Wordpress blogs using dockers on ec2

I just started playing with Docker.io. This is a great platform. I have a problem that I need help with. I ran the middle instance on the ec2 configuration docker. Now I want to run 2 wordpress blogs independently, using docker.io on top of the environment instance.

Please, if someone can kindly help me solve this problem, I will be extremely grateful

Many thanks Harim Hack

Updated:

Basically, I am trying to run two nodes for dockers (node ​​1 and node 2). I am running another node (node3: private repo for docker). What I'm looking for is to run two blogs (wordpress on node1). I export docker images to node3 (updates / exports are very rare)

Since I'm going to run wordpress, I was hoping to run wordpress on Nginx, and since node1 / node2 will run 80 web, I can place a physical node (reverse nginx proxy) in front of two nodes and have blogs running in g-mode.

I hope this experiment works so that I can get rid of the xen cloud platform that we have in the office. It is bulky and I have to manage many components. I would prefer to export / back up the docker image with my live data once in the blue moon and not worry about fault tolerance and vm management.

The problem is that I have a newbie when it comes to launching a docker, and thus, I am currently running around like a headless chicken, and don't know where to start.

I would be extremely grateful if you could provide any guidance / assistance really.

Regards Harim Hack

+8
docker dotcloud
source share
1 answer

Harem asked his question a while ago, and so far there are no good answers. I am also a noob, and I also want to learn how to use the universal Wordpress container, which I can click on Amazon or test locally. I'm very new to docker, so this seems like a high order!

purpose

Currently, I will start collecting some resources here. Maybe they will help Harim, and others like me. This document will turn into a complete answer or invite someone to give their own version of the answer (which, I am sure, is not so difficult).

Docker.io Index

At first, the Docker index is a repository of existing Docker.io components. Of these, there is a WordPress block that seems relevant here:

Docker on EC2

There is no official Docker support for Ec2 yet. However, the Docker community offers an installation path with a tool called Vagrant. Instructions for this are here:

Work in progress

This is not a complete answer to the question. As of right now, these are just a few simple places to look for resources and may be contrary to recommendations. Please feel free to!

Things to answer:

  • How do we run / test wordpress container (s) locally?
  • How do we push the container to the EC2 instance?
  • How do we connect Wordpress EC2 containers to our own domains?

I hope I will answer these questions - contributions and forks are welcome. I think Harem’s question is worth answering!

+8
source share

All Articles