/wordpress-tidb-docker

WordPress x TiDB Serverless Tier Cluster

Apache License 2.0Apache-2.0

WordPress TiDB Docker

Use the TiDB Serverless Tier cluster as the database for WordPress.

Prerequisites

Usage

  • Run mv .env.example .env.
  • Change the properties in .env to match your TiDB Serverless Tier cluster information.
    • In Cluster Overview of TiDB Cloud Web Console, click Connect button on the top right of the screen.
    • Select General in the Connect With dropdown list and select Debian/Ubuntu/Arch as the Operating System.
    • Copy and paste the connection infomation into the .env file. By default, your TiDB Serverless comes with a test DB. You could change the value TIDB_DB_NAME to the DB you've created in your TiDB Serverless.
  • Run docker compose up -d.
  • That's it! You can now initialize the WordPress site by going to the localhost page.

Stop & Clean

To stop and clean up the Docker containers, run docker compose down.