其他分享
首页 > 其他分享> > docker-compose安装wordpress-arm版本

docker-compose安装wordpress-arm版本

作者:互联网

创建目录

mkdir wordpress && cd wordpress

创建docker-compose文件

version: '2.0'
services:
   db:
     image: mysql
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress
   wordpress:
     depends_on:
       - db
     image: wordpress:fpm-alpine
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
       WORDPRESS_DB_NAME: wordpress
volumes:
    db_data: {}

访问

IP:8000
后台:IP:8000/wp-admin
前端:IP:8000/

 

18款wordpress插件

wordpress seo优化

wordpress 免费主题

 

标签:compose,DB,db,wordpress,MYSQL,WORDPRESS,docker,8000
来源: https://www.cnblogs.com/cgy-home/p/16512767.html