安裝 Wordpress (Docker)

  • 下載 docker-compose.yml

    curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/wordpress/docker-compose.yml > docker-compose.yml

  • 編輯 docker-compose.yml 設定 DB 密碼, Wordpress 預設密碼
    • mariadb environment:
      • ALLOW_EMPTY_PASSWORD=no
      • MARIADB_USER=wordpress
      • MARIADB_PASSWORD=db_P@ssword
      • MARIADB_DATABASE=wordpress
      • MARIADB_ROOT_PASSWORD=root_P@ssword
    • wordpress environment:
      • ALLOW_EMPTY_PASSWORD=no
      • WORDPRESS_DATABASE_HOST=mariadb
      • WORDPRESS_DATABASE_PORT_NUMBER=3306
      • WORDPRESS_DATABASE_USER=wordpress
      • WORDPRESS_DATABASE_PASSWORD=db_P@ssword
      • WORDPRESS_DATABASE_NAME=wordpress
      • WORDPRESS_SMTP_HOST=mail.ichiayi.com
      • WORDPRESS_SMTP_PORT=587
      • WORDPRESS_SMTP_USER=tryweb
      • WORDPRESS_SMTP_PASSWORD=mail_P@ssword
  • 第一次啟動 wordpress

    docker compose up -d

  • 可以透過 http://server-ip/wp-admin (預設帳號密碼: user/bitnami 登入開始進行設定)
  • tech/wordpress_docker.txt
  • 上一次變更: 2024/11/29 12:14
  • jonathan