# WordPress •

[WordPress](https://wordpress.org/) is an open-source publishing platform that allows you to easily build a website and blog. Leverage a range of pre-made themes and visual block system to build your site.

# Overview

[![Screen Shot 2025-03-08 at 17.31.43.png](https://hub.subspace.services/uploads/images/gallery/2025-03/scaled-1680-/screen-shot-2025-03-08-at-17-31-43.png)](https://hub.subspace.services/uploads/images/gallery/2025-03/screen-shot-2025-03-08-at-17-31-43.png)

[WordPress](https://wordpress.org/) is an open-source publishing platform that allows you to easily build a website and blog. Leverage a range of pre-made themes and visual block system to build your site.

<p class="callout success">Tryout an [WordPress demo](https://wordpress.org/playground/demo/).</p>

- Preview a website in real-time as you're editing to and schedule changes in the future.
- Browse over 50,000 add-ons for your WordPress website.
- Start from a pre-made Pattern and edit it to better fit your needs.

# Media

## Screenshots

<p class="callout info">WordPress v6.7.2</p>

<table border="1" id="bkmrk-" style="border-collapse: collapse; width: 100%; border-width: 1px; height: 59.6px; border-color: rgb(88, 110, 117);"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="border-width: 1px; height: 29.8px; border-color: rgb(88, 110, 117);">[![Screen Shot 2025-03-08 at 17.31.43.png](https://hub.subspace.services/uploads/images/gallery/2025-03/scaled-1680-/screen-shot-2025-03-08-at-17-31-43.png)](https://hub.subspace.services/uploads/images/gallery/2025-03/screen-shot-2025-03-08-at-17-31-43.png)</td><td style="border-width: 1px; height: 29.8px; border-color: rgb(88, 110, 117);">[![Screen Shot 2025-03-08 at 17.31.23.png](https://hub.subspace.services/uploads/images/gallery/2025-03/scaled-1680-/screen-shot-2025-03-08-at-17-31-23.png)](https://hub.subspace.services/uploads/images/gallery/2025-03/screen-shot-2025-03-08-at-17-31-23.png)</td><td style="border-width: 1px; height: 29.8px; border-color: rgb(88, 110, 117);">[![Screen Shot 2025-03-08 at 17.31.30.png](https://hub.subspace.services/uploads/images/gallery/2025-03/scaled-1680-/screen-shot-2025-03-08-at-17-31-30.png)](https://hub.subspace.services/uploads/images/gallery/2025-03/screen-shot-2025-03-08-at-17-31-30.png)</td></tr><tr style="height: 29.8px;"><td style="border-width: 1px; height: 29.8px; border-color: rgb(88, 110, 117);">[![Screen Shot 2025-03-08 at 17.31.48.png](https://hub.subspace.services/uploads/images/gallery/2025-03/scaled-1680-/screen-shot-2025-03-08-at-17-31-48.png)](https://hub.subspace.services/uploads/images/gallery/2025-03/screen-shot-2025-03-08-at-17-31-48.png)</td><td style="border-width: 1px; height: 29.8px; border-color: rgb(88, 110, 117);">[![Screen Shot 2025-03-08 at 17.32.00.png](https://hub.subspace.services/uploads/images/gallery/2025-03/scaled-1680-/screen-shot-2025-03-08-at-17-32-00.png)](https://hub.subspace.services/uploads/images/gallery/2025-03/screen-shot-2025-03-08-at-17-32-00.png)</td><td style="border-width: 1px; height: 29.8px; border-color: rgb(88, 110, 117);">[![Screen Shot 2025-03-08 at 17.32.15.png](https://hub.subspace.services/uploads/images/gallery/2025-03/scaled-1680-/screen-shot-2025-03-08-at-17-32-15.png)](https://hub.subspace.services/uploads/images/gallery/2025-03/screen-shot-2025-03-08-at-17-32-15.png)</td></tr></tbody></table>

# Setup & Configuration

We need to install the service through Portainer and configure any necessary settings.

# Preparation

There are some things we need to do in preparation to install this service.

## Volumes

<details id="bkmrk-media-folders-radarr"><summary>Persistent Data</summary>

This is where the service will store its own application data and ensures we can quickly update the service image.

<p class="callout warning">Ensure your user has permissions to access the folder.</p>

</details>## Environment

<details id="bkmrk-tz-this-is-the-curre"><summary>DB\_USER</summary>

This is the username to be used for logging into the database.

<p class="callout info">*For example:* wordpress\_admin</p>

</details>### Passwords

<p class="callout danger">Keep these securely stored in a password manager, such as [VaultWarden](https://hub.subspace.services/books/vaultwarden "VaultWarden").</p>

<details id="bkmrk-db_root_pass-this-is"><summary>DB\_PASSWORD</summary>

This is the password that will be used for access to the database.

<p class="callout warning">It is important to use secure, randomly generated password.</p>

You can use a random alphanumeric string from a password manager, or open the terminal and run the command:

```
tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 32; echo
```

This pulls a random string from the '[urandom](https://en.wikipedia.org/wiki//dev/random)' device, removes unwanted characters and trim it to an appropriate length.

</details>

# Installation

The service can be installed through the Portainer web interface.

<p class="callout info">Learn about [creating a new stack](https://hub.subspace.services/books/portainer/page/creating-a-new-stack "Creating a New Stack").</p>

## Docker Compose

Use the following code to install the service:

```yaml
---
services:
  db:
    image: mariadb:10.6.4-focal
    command: '--default-authentication-plugin=mysql_native_password'
    volumes:
      - /srv/wordpress/db:/var/lib/mysql
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_DATABASE=wordpress
      - MYSQL_USER=${DB_USER}
      - MYSQL_PASSWORD=${DB_PASSWORD}
    expose:
      - 3306

  wordpress:
    image: wordpress:latest
    ports:
      - 8080:80
    restart: always
    depends_on:
      - db
    volumes:
     - /srv/wordpress/html:/var/www/html
    environment:
      - WORDPRESS_DB_HOST=db
      - WORDPRESS_DB_USER=${DB_USER}
      - WORDPRESS_DB_PASSWORD=${DB_PASSWORD}
      - WORDPRESS_DB_NAME=wordpress
```

## Environment

Use the following environment to configure the service using the values prepared earlier:

```yaml
# Database Configuration
DB_USER=wordpress_admin

# Passwords
# After the initial setup, the passwords should be saved elsewhere and stack should be re-deployed with these settings deleted.

# Database Passwords
DB_PASSWORD=
```

# Updating

<p class="callout success">Re-Deploy the Stack</p>

This service has been optimized for running in Docker.

This allows you to [re-deploy the stack through Portainer](https://hub.subspace.services/books/portainer/page/updating-a-stack "Updating a Stack") to download the latest updates.

# User Manual

# Development

<p class="callout info">This software is released under the [MIT license](https://opensource.org/license/mit). </p>

You can learn more about how to contribute to WordPress through their [website](https://wordpress.org/five-for-the-future/for-individuals/).

The WordPress Foundation also accepts [donations](https://wordpressfoundation.org/donate/).

# Resources

## Official

- [Official Documentation](https://wordpress.org/documentation/)
- [Official Forum](https://wordpress.org/support/forums/)
- [Official GitHub Repository](https://github.com/wordpress)
- [Official Website](https://wordpress.org/)
- [Wikipedia Entry](https://en.m.wikipedia.org/wiki/WordPress)
- [Installation Guide](https://wordpress.org/documentation/category/installation/)
- [Frequently Asked Questions](https://wordpress.org/documentation/category/faqs/)