jakezhu
V2EX  ›  Docker

[Docker 使用经验分享] 使用 Docker 部署 WordPress LNMP(Nginx PHP MySQL)环境

  •  
  •   jakezhu · Feb 17, 2017 · 5302 views
    This topic created in 3401 days ago, the information mentioned may be changed or developed.
    最近浏览了一遍 Docker 官方的大部分文档,发现 Docker 能真正地把我们从 Linux 繁琐的环境配置中解脱出来,一次配置,无限次快速部署。于是打算把博客迁移到 Docker 。大概的步骤是分别编写好 Nginx PHP MySQL 的 Dockerfile ,然后把 Dockerfile 及一些配置文件托管到阿里云 Kelude(code.aliyun.com),再利用阿里云的 Docker 镜像仓库自动构建镜像(cr.console.aliyun.com)。然后使用 compose 一键启动这些服务。类似的服务有 github.comhub.docker.com ,不过涉及到 SSL 证书,就选择前者了,因为能免费地设置代码和镜像为私有。具体地配置步骤就不粘贴过来了,请转到 https://www.centos.bz/2017/02/docker-wordpress-nginx-php-mysql-lnmp/
    3 replies    2017-02-17 12:59:01 +08:00
    holyghost
        1
    holyghost  
       Feb 17, 2017
    之前也做过,后来发现写 dockerfile 和写安装脚本没啥区别。
    jakezhu
        2
    jakezhu  
    OP
       Feb 17, 2017
    是没什么区别,就是保存好环境,方便快速部署。
    SharkIng
        3
    SharkIng  
       Feb 17, 2017 via iPhone
    真的感觉没区别,不过好像迁移方便点
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1095 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 18:34 · PVG 02:34 · LAX 11:34 · JFK 14:34
    ♥ Do have faith in what you're doing.