好物优选点击查看详情 京东购买

暂无内容

wordpress来搭建wiki分享

简介

说明:用wiki来记录分享的文章和有些有趣的文章,会将其开源到GitHub上。

暂时选择一月更新一次,team还小,就几个人。

为啥用docker?要快速部署和进行热迁移时快嘛

采用docker容器搭建wordpress,使用IKnowledgeBase主题

wordpress来搭建wiki分享插图

wordpress来搭建wiki分享插图1

步骤

docker搭建wordpress

借鉴kefins/docker_wpress (github.com)

wordpress来搭建wiki分享插图2

修改了一下docker-compose.yml的配置,wordpress采用官方的容器(数据库密码后期还不改看你个人啦)

version: '3' services: mysql: image: mariadb container_name: db ports: - '3306:3306' volumes: - ./sqldb:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=aqwe123 - MYSQL_DATABASE=wordpress - MYSQL_USER=wordpress - MYSQL_PASSWORD=aqwe123 networks: - backend restart: always wordpress: depends_on: - mysql image: wordpress container_name: wpress ports: - '8080:80' volumes: - ./www:/var/www/html environment: - WORDPRESS_DB_NAME=wordpress - WORDPRESS_TABLE_PREFIX=wp_ - WORDPRESS_DB_HOST=mysql:3306 - WORDPRESS_DB_USER=wordpress - WORDPRESS_DB_PASSWORD=aqwe123 links: - mysql networks: - backend - frontend restart: always nginx: image: nginx:latest container_name: nginxD ports: - '80:80' - "443:443" volumes: - ./nginx:/etc/nginx/conf.d - ./logs/nginx:/var/log/nginx - ./www:/var/www/html - /var/run/docker.sock:/tmp/docker.sock:ro links: - wordpress networks: - frontend restart: always networks: frontend: #name: test_frontend driver: bridge backend: #name: test_backend driver: bridge

docker-compose up -d 拉取镜像配置

浏览器访问127.0.0.1:8080便可进入到其中了

wordpress来搭建wiki分享插图3

原文链接:https://blog.csdn.net/qingjie0ng/article/details/128286291?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168666919616800180631443%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=168666919616800180631443&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-18-128286291-null-null.268%5Ev1%5Ekoosearch&utm_term=docker%E3%80%81wordpress%E3%80%81wordpress%E5%BB%BA%E7%AB%99%E3%80%81wordpress%E4%B8%BB%E9%A2%98%E3%80%81%E5%AE%B9%E5%99%A8%E9%95%9C%E5%83%8F%E3%80%81

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享