Portainer Templates

Wordpress (stack)

WordpressWeb

Wordpress setup with a MySQL database

Type Kubernetes Platform linux Sourced Repo Env Vars

WEB_SERVER_PORT=5080MYSQL_DATABASE_USER_NAME=wordpressMYSQL_DATABASE_PASSWORD=''MYSQL_DATABASE_ROOT_PASSWORD=''

Services

wordpress

Image wordpress:latest Ports

${WEB_SERVER_PORT}:80

Volumes

/var/www/html : wordpress

Restart Policy unless-stopped Env Vars

db:3306=''${MYSQL_DATABASE_USER_NAME}=''${MYSQL_DATABASE_PASSWORD}=''wordpress=''

Pulls: 1.5B
Stars: 6k
User: stackbrew
Created: Jun 05, 2014
Updated: 1 day ago
Status: active

db

Image jc21/mariadb-aria:latest Volumes

/var/lib/mysql : db

Restart Policy unless-stopped Env Vars

wordpress=''${MYSQL_DATABASE_USER_NAME}=''${MYSQL_DATABASE_PASSWORD}=''${MYSQL_DATABASE_ROOT_PASSWORD}=''

Pulls: 71.6M
Stars: 39
User: jc21
Created: Nov 01, 2018
Updated: 5 months ago
Status: active

Installation

Via Portainer

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select the app you wish to deploy, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo

Via Docker Run

Service #1 - wordpress

docker run --name wordpress -d \
 -e "" \
 -e "" \
 -e "" \
 -e "" \
 -p ${WEB_SERVER_PORT}:80 \
 -v wordpress:/var/www/html \
 --restart=unless-stopped \
 wordpress:latest

Service #2 - db

docker run --name db -d \
 -e "" \
 -e "" \
 -e "" \
 -e "" \
 -v db:/var/lib/mysql \
 --restart=unless-stopped \
 jc21/mariadb-aria:latest

Via Docker Compose

Save this file as docker-compose.yml and run docker-compose up -d
Use this only as a guide.

- name: wordpress
  image: wordpress:latest
  ports:
    - ${WEB_SERVER_PORT}:80
  volumes:
    - bind: wordpress
      container: /var/www/html
  restart_policy: unless-stopped
  env:
    - name: db:3306
      value: ''
    - name: ${MYSQL_DATABASE_USER_NAME}
      value: ''
    - name: ${MYSQL_DATABASE_PASSWORD}
      value: ''
    - name: wordpress
      value: ''
- name: db
  image: jc21/mariadb-aria:latest
  volumes:
    - bind: db
      container: /var/lib/mysql
  restart_policy: unless-stopped
  env:
    - name: wordpress
      value: ''
    - name: ${MYSQL_DATABASE_USER_NAME}
      value: ''
    - name: ${MYSQL_DATABASE_PASSWORD}
      value: ''
    - name: ${MYSQL_DATABASE_ROOT_PASSWORD}
      value: ''

Alternative Methods

For more installation options, see the Documentation in the GitHub repo

Container Documentation

wordpress Documentation

The WordPress rich content management system can utilize plugins, widgets, and themes.

db Documentation

Extension of the mariadb image that forces aria storage engine by default.