如何运行2个wordpress博客使用在ec2上的docker [英] How to run 2 wordpress blogs using docker on ec2

查看:142
本文介绍了如何运行2个wordpress博客使用在ec2上的docker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始玩Docker.io玩。它是一个伟大的平台肯定。我有一个问题我需要一些帮助。我在ec2设置docker上运行了一个中等的实例。现在我想运行2个wordpress博客,彼此独立,使用docker.io在中等的实例之上。



如果有人可以指导我来解决这个问题我将非常感激



非常感谢确实
Hareem Haque



更新:



基本上,我想做的是为docker(节点1和节点2)运行两个节点。我运行另一个节点(node3:docker的private repo)。我想要完成的是我运行两个博客(在node1上的wordpress)。我将Docker图像导出到node3(更新/导出很少)



由于我要运行wordpress我希望在Nginx中运行wordpress,因为node1 / node2将运行80 web我可以在两个节点的前面放置一个物理节点(nginx反向代理),并且博客以ha模式运行。



我希望这个实验工作,所以我可以摆脱我们在办公室的xen云平台。它笨重,我必须管理很多组件。
我宁愿使用我的实时数据导出/备份docker图像一次在蓝色的月亮,而不必担心故障切换和vm管理。



问题是我有一个新手,当谈到运行码头工人,因此我目前正在像一个少头鸡一样跑步,不知道在哪里正确开始。



我会非常感谢你能提供任何指导/帮助。



最好的祝福
Hareem Haque

解决方案

Hareem回答了他的问题,似乎还没有任何好的答案。我也是一个noobie,我也想学习如何使用一个通用的wordpress容器,我可以推送到亚马逊或在本地测试。我对码头很新,所以这似乎是一个很高的订单!



目标



现在,我将开始在这里收集一些资源。也许他们会帮助Hareem,还有其他人喜欢我自己。这个文件将变成一个完整的答案,或提示别人给出他们的答案(我确定不是那么复杂)。



Docker .io索引



首先,Docker索引是已经存在的Docker.io组件的存储库。其中有一个wordpress单元在这里似乎相关:





EC2上的Docker



还没有正式的Docker对Ec2的支持。然而,Docker社区建议使用名为Vagrant的工具进行安装路径。这里的说明在这里:





正在进行中



这不是问题的完整答案。截至目前,这只是提供了一些易于定位的资源,也许违反了指导原则。请承担这个!



需要回答的事情:




  • 如何我们在本地运行/测试wordpress容器?

  • 我们如何将容器推送到EC2实例?

  • 我们如何将EC2 wordpress容器连接到自己的域?



希望我会回答这些问题 - 欢迎贡献和支付。我认为Hareem的问题值得回答!


I just started playing around with Docker.io. Its a great platform for sure. I have an issue i need some help with. I ran a medium instance on ec2 setup docker. Now i want to run 2 wordpress blog independent of each other using docker.io on top of the medium instance.

Please if someone can kindly guide me to resolve this issue i will extremely grateful

Many Thanks Indeed Hareem Haque

Updated:

Basically, what i am trying to do is run two nodes for docker (node 1 & node 2). I run another node (node3: private repo for docker). What i am looking to accomplish is i run two blogs (wordpress on node1). I export the docker images to node3 (updates/exports are done very rarely)

Since i am going to run wordpress i was hoping to run wordpress within Nginx and since node1/node2 will run 80 web i can put a physical node (nginx reverse proxy) in front of the two nodes and have the blogs run in ha mode.

I am hoping that this experiment work so i that i can get rid of the xen cloud platform we have in office. Its to bulky and I have to manage alot of components. I would rather export/backup docker image with my live data once in a blue moon and not have to worry about failover and vm management.

The problem is that i have a novice when it comes to running docker and thus i am currently running around like a head less chicken with no idea where to properly begin.

I would be extremely grateful if you can provide any guidance/assistance indeed.

Best Regards Hareem Haque

解决方案

Hareem asked his question a while back, and there don't seem to be any good answers yet. I'm a noobie as well, and I too want to learn how to use a generic wordpress container that I can push to Amazon or test locally. I'm very new to docker, so this seems like a tall order!

Goal

For now, I'll start collecting some resources here. Maybe they will help Hareem, and others like myself. This document will turn into a complete answer, or prompt someone else to give their version of an answer (which I'm sure is not quite so complex.)

The Docker.io Index

First, the Docker index is a repository of already existing Docker.io components. Of these, there is a wordpress unit that seems relevant here:

Docker on EC2

There is as yet no official Docker support for Ec2. However, the Docker community suggests an install path using a tool called Vagrant. The instructions for this live here:

Work In Progress

This is not a complete answer to the question. As of right now this only presents a couple of easy to locate resources, and perhaps goes against guidelines. Please bear with this!

Things that need to be answered:

  • How do we run / test the wordpress container(s) locally?
  • How do we push the container(s) up to the EC2 instance?
  • How do we wire the EC2 wordpress containers up to their own domains?

Hopefully I will answer these questions - contributions and forks are welcome. I think Hareem's question is worth answering!

这篇关于如何运行2个wordpress博客使用在ec2上的docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆