# Wordpress

Wordpress hosted on Render

- Repository: https://github.com/render-examples/wordpress
- Stack: docker
- Tags: blog, cms, database, object-storage
- URL: https://render.com/templates/wordpress

## Why deploy Wordpress on Render?

WordPress is an open-source content management system (CMS) for building and managing websites. It solves the problem of creating websites without writing code, providing a user-friendly interface for publishing content, managing media, and extending functionality through themes and plugins.

This template pre-wires WordPress with a MySQL database, configures persistent SSD storage via Render Disks for your uploads and content, and sets all the database connection variables automatically. Instead of manually provisioning a database, configuring Docker volumes, and wiring environment variables yourself, you get a working WordPress stack with one click. Render Disks ensure your media files persist across deploys without needing to manage external storage services.

## Architecture

```mermaid

flowchart LR
    classDef default fill:#1a1a2e,stroke:#a78bfa,color:#fff

    User([User])
    wordpress[wordpress]
    mysql-wordpress((mysql-wordpress))
    
    User -->|HTTP requests| wordpress
    wordpress -->|queries| mysql-wordpress
		
```

## What you can build

You'll have a fully functional WordPress site with persistent storage for your uploads and a MySQL database backing it. From there you can install themes, add plugins, and manage content through the standard WordPress admin dashboard—no additional infrastructure setup required.

## Key features

- *Official Docker Image*: Uses the official WordPress Docker image from Docker Hub for reliable, maintained container builds.
- *Persistent SSD Storage*: Render Disks provide fast SSD-backed persistent storage for WordPress content and uploads.
- *MySQL Database Integration*: Pre-configured to use MySQL on Render as the WordPress database backend.
- *One-Click Deployment*: Includes a Deploy to Render button for instant provisioning of the complete WordPress stack.

## Use cases

- Freelancer launches client blog with managed hosting and persistent storage
- Startup founder deploys company website without managing server infrastructure
- Agency spins up WordPress staging site for client review quickly
- Blogger migrates existing WordPress site to scalable cloud platform

## What's included

| Service | Type | Purpose |
|---------|------|---------|
| wordpress | Web Service | Application service |
| mysql-wordpress | Private Service | Application service |

## Next steps

1. Open your WordPress web service URL and complete the installation wizard — You should see the WordPress language selection page, then be able to set your site title, admin username, and password
2. Configure a permalink structure under Settings > Permalinks and save changes — Your posts and pages should now use clean URLs like /sample-post instead of ?p=123
3. Upload a test image via Media > Add New in the WordPress admin dashboard — The image should upload successfully and remain accessible after refreshing the page, confirming your Render Disk is storing media files persistently

## Resources

- [WordPress official site](https://wordpress.org)
