elestio/wordpress

Verified Publisher

By Elestio

Updated about 22 hours ago

Wordpress, verified and packaged by Elestio

Image
Security
Web servers
Content management system
7

50K+

elestio/wordpress repository overview

elest.io

Discord Elestio examples Blog

Wordpress, verified and packaged by Elestio

Wordpress is the free, open-source WordPress software that you can install on your own web host to create a website that’s 100% your own.

Deploy a fully managed wordpress on elest.io if you want automated backups, reverse proxy with SSL termination, firewall, automated OS & Software updates, and a team of Linux experts and open source enthusiasts to ensure your services are always safe, and functional.

wordpress

deploy

Why use Elestio images?

  • Elestio stays in sync with updates from the original source and quickly releases new versions of this image through our automated processes.
  • Elestio images provide timely access to the most recent bug fixes and features.
  • Our team performs quality control checks to ensure the products we release meet our high standards.

Usage

Docker-compose

Here are some example snippets to help you get started creating a container.

version: '3.3'
services:
  redis:
      image: 'redis:alpine'
      ports:
          - '172.17.0.1:6379:6379'
      restart: always
      volumes:
      - ./redis_data:/data
  database:
      image: elestio/mysql:latest
      volumes:
          - ./db:/var/lib/mysql
      restart: always
      env_file:
          - .env
      environment:
          MYSQL_DATABASE: blog_wp
      command: '--default-authentication-plugin=mysql_native_password'
      cap_add:
          - SYS_NICE  # CAP_SYS_NICE
      networks:
          - blog-network
  wordpress:
      depends_on:
          - database
      image: elestio/wordpress:${SOFTWARE_VERSION_TAG}
      restart: always
      user: "root:root"
      dns:
          - 8.8.8.8
      ports:
          - 172.17.0.1:9000:80
      env_file:
          - .env
      environment:
          - WORDPRESS_DB_HOST=database:3306
          - WORDPRESS_DB_USER=${MYSQL_USER}
          - WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD}
          - WORDPRESS_DB_NAME=blog_wp
      volumes:
          - ./php.ini:/usr/local/etc/php/conf.d/custom.ini
          - ./wordpress:/var/www/html
      networks:
          - blog-network
  phpmyadmin:
      image: phpmyadmin
      restart: always
      depends_on:
          - database
      environment:
          - PMA_HOST=database
          - PMA_PORT=3306
          - PMA_USER=wpdbuser
          - PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
          - MYSQL_USERNAME=wpdbuser
          - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
      ports:
          - 172.17.0.1:24581:80
      networks:
          - blog-network
networks:
    blog-network:
        driver: bridge
Environment variables
VariableValue (example)
SOFTWARE_VERSION_TAGlatest
ADMIN_EMAIL[email protected]
ADMIN_PASSWORDadmin
MYSQL_ROOT_PASSWORDpassword
MYSQL_USERwpdbuser
MYSQL_PASSWORDpassword

Access

You can access the Web UI at: http://your-domain:9000

Maintenance

Logging

The Elestio Wordpress Docker image sends the container logs to stdout. To view the logs, you can use the following command:

docker-compose logs -f

To stop the stack you can use the following command:

docker-compose down

Backup and Restore with Docker Compose

To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.

Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:

zip -r myarchive.zip .

Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:

unzip myarchive.zip -d /path/to/original/folder

Starting Your Stack Once your backup is complete, you can start your stack again with the following command:

docker-compose up -d

That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.

Tag summary

Content type

Image

Digest

sha256:4c3619758

Size

256.5 MB

Last updated

about 22 hours ago

docker pull elestio/wordpress

This week's pulls

Pulls:

264

Last week