从 wordpress 到 hexo 到 hugo 到 ghost 最后到 wordpress。果然 wordpress 是最终的归宿(?)。仿佛一切刷机的结局都是MIUI。

依旧是 Docker,Docker 真的很舒服

docker-compose.yaml

version: '3'

services:
  wordpress:
    image: wordpress
    container_name: wordpress
    restart: always
    depends_on:
      - db
    ports:
      - 8000:80
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: wordpress
      WORDPRESS_DB_PASSWORD: wordpress
      WORDPRESS_DB_NAME: wordpress
    volumes:
      - ./wordpress:/var/www/html
      - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro

  db:
    image: mariadb
    container_name: wordpress_db
    restart: always
    environment:
      MYSQL_DATABASE: wordpress
      MYSQL_USER: wordpress
      MYSQL_PASSWORD: wordpress
      MYSQL_ROOT_PASSWORD: root_password
    volumes:
      - ./db:/var/lib/mysql
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
  
  adminer:
    image: adminer
    container_name: wordpress_adminer
    restart: always
    depends_on:
      - db
    ports:
      - 8001:8080

uploads.ini

file_uploads = On
memory_limit = 256M
upload_max_filesize = 256M
post_max_size = 256M
max_ececution_time = 600

这个好像不好使???

最后修改日期: 2021年6月21日

作者

留言

撰写回覆或留言

发布留言必须填写的电子邮件地址不会公开。